gulp-rename / 1.2.2 last updated a year ago created on Dec 4th 2013
Install
npm install --save gulp-rename
Clone
git clone git@github.com:hparra/gulp-rename.git
dependencies
No dependencies listed.
maintainers
versions
7 total
| 1.2.2 | a year ago | fractal |
| 1.2.0 | 2 years ago | hparra |
| 1.1.0 | 2 years ago | hparra |
| 1.0.0 | 2 years ago | hparra |
| 0.2.2 | 2 years ago | hparra |
| 0.2.1 | 2 years ago | hparra |
| 0.1.0 | 2 years ago | hparra |
readme
gulp-rename
gulp-rename is a gulp plugin to rename files easily.
Usage
gulp-rename provides simple file renaming methods.
See test/rename.spec.js for more examples and test/path-parsing.spec.js for hairy details.
Notes
dirnameis the relative path from the base directory set bygulp.srcto the filename.gulp.src()uses glob-stream which sets the base to the parent of the first directory glob (*,**, [], or extglob).dirnameis the remaining directories or./if none. glob-stream versions >= 3.1.0 (used by gulp >= 3.2.2) accept abaseoption, which can be used to explicitly set the base.gulp.dest()renames the directories betweenprocess.cwd()anddirname(i.e. the base relative to CWD). Usedirnameto rename the directories matched by the glob or descendents of the base of option.
basenameis the filename without the extension like path.basename(filename, path.extname(filename)).extnameis the file extension including the '.' like path.extname(filename).
