gulp-pathmap

0.1.0 • Public • Published

gulp-pathmap

Rename files with pathmap, rake's pathmap for JavaScript. Think of it like sprintf for paths.

Usage

var gulp = require('gulp');
var pathmap = require('pathmap');
 
// Renames all files according to the pathspec.
// In this example, the %X token is replaced with the file's
// path up to but not including the extension.
gulp.task('rename', function(){
  return gulp.src('lib/*.js')
    .pipe(pathmap('%X.min.js'))
    .pipe(gulp.dest('build'));
});

See the pathmap docs for all supported patterns.

License

MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    10
  • 0.0.0
    8

Package Sidebar

Install

npm i gulp-pathmap

Weekly Downloads

18

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jeremyruppel