aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp-rename/README.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/gulp-rename/README.md
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/gulp-rename/README.md')
-rw-r--r--node_modules/gulp-rename/README.md3
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