From af68a92702595ee88e2ef5df6c887061ab2774f4 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Wed, 19 Oct 2016 00:47:29 +0200 Subject: [PATCH] improve README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ee55205..d6f4c12 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ accepts call to execute in gulp pipeline. ### Usage ```javascript -var gulp = require("gulp"); -var gulpFunction = require("gulp-function"); -var Q = require("q"); +let gulp = require("gulp"); +let gulpFunction = require("gulp-function"); +let Q = require("q"); -var myFunction = function (file, enc) { // file and enc are optional in case you want to modify the file object - var done = Q.defer(); +let myFunction = function (file, enc) { // file and enc are optional in case you want to modify the file object + let done = Q.defer(); console.log("Hello World!") // NOTE: @@ -36,7 +36,7 @@ var myFunction = function (file, enc) { // file and enc are optional in case you } gulp.task('gulpTest',function() { - var stream = gulp.src('./mydir/*.something') + let stream = gulp.src('./mydir/*.something') .pipe(gulpFunction(myFunction,'forEach')) //read the notes below .pipe(gulp.dest("./build/")); return stream; // by returning the stream gulp knows when our task has finished.