diff options
Diffstat (limited to 'node_modules/gulp-rename/README.md')
-rw-r--r-- | node_modules/gulp-rename/README.md | 3 |
1 files changed, 2 insertions, 1 deletions
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 |