Package Exports
- gulp-rename
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-rename) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-rename
gulp-rename is a gulp plugin to rename files easily.
Usage
gulp-rename provides simple file renaming methods.
var rename = require("gulp-rename");
// rename via string
gulp.src("./src/hello.txt")
.pipe(rename("goodbye.txt"))
.pipe(gulp.dest("./dist"));
// rename via function
gulp.src("./src/hello.txt")
.pipe(rename(function (dir, base, ext) {
return base + "-goodbye" + ext;
}))
.pipe(gulp.dest("./dist")); // ./dist/hello-goodbye.txt
// rename via hash
gulp.src("./src/hello.txt")
.pipe(rename({
prefix: "bonjour-",
suffix: "-hola",
ext: ".md"
}))
.pipe(gulp.dest("./dist")); // ./dist/bonjour-hello-hola.md
Notes
ext
follows the node convention in that it includes the period.