# gulp-pathmap

Rename files with [pathmap][pathmap], rake's [pathmap](http://devblog.avdi.org/2014/04/24/rake-part-4-pathmap/) for JavaScript. Think of it like `sprintf` for paths.

## Usage

``` js
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][pathmap] docs for all supported patterns.

## License

[MIT License][LICENSE]

[pathmap]: https://github.com/jeremyruppel/pathmap
[LICENSE]: https://github.com/jeremyruppel/gulp-pathmap/blob/master/LICENSE

# gulp-pathmap

Rename files with [pathmap][pathmap], rake's [pathmap](http://devblog.avdi.org/2014/04/24/rake-part-4-pathmap/) for JavaScript. Think of it like `sprintf` for paths.

> [![NPM version][npm-badge]][npm]
> [![Build Status][travis-badge]][travis-ci]

## Usage

``` js
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][pathmap] docs for all supported patterns.

## License

[MIT License][LICENSE]

[npm]: http://badge.fury.io/js/gulp-pathmap
[npm-badge]: https://badge.fury.io/js/gulp-pathmap.svg
[travis-ci]: https://travis-ci.org/jeremyruppel/gulp-pathmap
[travis-badge]: https://travis-ci.org/jeremyruppel/gulp-pathmap.svg?branch=master
[pathmap]: https://github.com/jeremyruppel/pathmap
[LICENSE]: https://github.com/jeremyruppel/gulp-pathmap/blob/master/LICENSE

Add npm and travis badges to readme
Add npm and travis badges to readme
