{"name":"rte","description":"Simple filepath re-writing for node.js projects. Useful for re-writing paths in grunt/gulp/assemble tasks or plugins.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/rte","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/rte"},"bugs":{"url":"https://github.com/jonschlinkert/rte/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^0.2.0","parse-filepath":"^0.5.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["basename","blog","directory","dirname","ext","extname","filepath","fs","link","path","permalinks","post","rename","rewrite","rewriting","route","routes","routing","uri","url","url-routing"],"gitHead":"40aa57678841fa737430286d45a6d9ccd6570f69","_id":"rte@2.0.0","_shasum":"bc3feb7795b02480a7d4c6f32b7dc438b61c622d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bc3feb7795b02480a7d4c6f32b7dc438b61c622d","tarball":"http://registry-npm.ywwl.com/rte/download/rte-2.0.0.tgz","integrity":"sha512-DjI3RAno3tExkV4mwJfJeOLd2DBuHgVgsdPytZ8gj6eLLPYY7WFpYHtt9SpkJfxY6CGCTwL1/O7xghTDR0J+Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfmA6qcqOuta2G/6EoEZe62pRHHkZAwkjMpIsnWrZZ9AIhAKl+OKGrqANt4V7SeX4mLYSq32MNA+XL4P6tKl4r4bUE"}],"size":2794,"noattachment":false,"key":"/rte/-/rte-2.0.0.tgz"},"directories":{},"readme":"# rte [![NPM version](https://badge.fury.io/js/rte.svg)](http://badge.fury.io/js/rte)\n\n> Simple filepath re-writing for node.js projects. Useful for re-writing paths in grunt/gulp/assemble tasks or plugins.\n\n**v2.0 released! Breaking changes!**\n\n* `.process()` is now `.stringify()`\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i rte --save\n```\n\n## Usage\n\n```js\nvar rte = require('rte');\n```\n\n## API\n\n### [rte](index.js#L47)\n\nGenerate a file path from properties on the given object.\n\n**Examples:**\n\nWhen a `source` file path is passed as the first argument, it will\nbe parsed and the resulting object will merged with the data\nobject (properties on the data object take precendence).\n\n**Params**\n\n* `src` **{String}**: Optionally pass a source file path to parse.\n* `dest` **{String}**: Template for the destination file path with `:properties` to replace.\n* `data` **{Object}**: Object with values to pass to the dest.\n\n**Examples**\n\n```js\nrte(':a/:b:.c', { a: 'aaa', b: 'bbb', c: 'js' });\n//=> 'aaa/bbb/c.js'\n```\n\n```js\nrte('a/b/c.html', ':destbase/:basename', { destbase: 'foo' });\n//=> 'foo/c.html'\n```\n\n## Related projects\n\n* [gulp-routes](https://github.com/assemble/gulp-routes): Add middleware to run for specified routes in your gulp pipeline.\n* [gulp-rte](https://github.com/jonschlinkert/gulp-rte): Better dest handling for Gulp.\n* [gulp-dest](https://github.com/jonschlinkert/gulp-dest): Gulp plugin for easily defining destination paths using path variables.\n* [gulp-extname](https://github.com/jonschlinkert/gulp-extname): gulp plugin to dynamically rewrite dest extensions based on src extensions.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/rte/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2014-2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 31, 2015._\n","publish_time":1424651131069,"_cnpm_publish_time":1424651131069,"dist-tags":{"latest":"2.0.1"}}