gulp-rebase

0.1.1 • Public • Published

gulp-rebase

Rebase gulp file paths

Installation

npm install gulp-rebase

Usage

Beginning of path

  gulp.src('some/path/**/*.js')
  .pipe(rebase('^2'));
  // Would convert /this/path/here => /this/path

End of path

  gulp.src('some/path/**/*.js')
  .pipe(rebase('2$'));
  // Would convert /this/path/here/is/long => /this/path/here

Explicit overwrite

  gulp.src('some/path/**/*.js')
  .pipe(rebase('/some/new/path'));
  // Would convert /this/path/here => /some/new/path

Readme

Keywords

Package Sidebar

Install

npm i gulp-rebase

Weekly Downloads

15

Version

0.1.1

License

MIT

Last publish

Collaborators

  • rschmukler