From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/gulp-rename/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node_modules/gulp-rename/README.md') diff --git a/node_modules/gulp-rename/README.md b/node_modules/gulp-rename/README.md index b45c3664f..4fdd30bb8 100644 --- a/node_modules/gulp-rename/README.md +++ b/node_modules/gulp-rename/README.md @@ -24,7 +24,7 @@ gulp.src("./src/**/hello.txt") .pipe(rename(function (path) { path.dirname += "/ciao"; path.basename += "-goodbye"; - path.extname = ".md" + path.extname = ".md"; })) .pipe(gulp.dest("./dist")); // ./dist/main/text/ciao/hello-goodbye.md @@ -49,6 +49,7 @@ gulp.src("./src/main/text/hello.txt", { base: process.cwd() }) * `gulp.dest()` renames the directories between `process.cwd()` and `dirname` (i.e. the base relative to CWD). Use `dirname` to rename the directories matched by the glob or descendents of the base of option. * `basename` is the filename without the extension like path.basename(filename, path.extname(filename)). * `extname` is the file extension including the '.' like path.extname(filename). +* when using a function, a second `file` argument is provided with the whole context and original file value ## License -- cgit v1.2.3