{"name":"rte","description":"Simple filepath re-writing for node.js projects. Useful for re-writing paths in grunt/gulp/assemble tasks or plugins.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/rte","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/rte.git"},"bugs":{"url":"https://github.com/jonschlinkert/rte/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/rte/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.1.0","verb":"^0.2.15","verb-tag-jscomments":"^0.2.2"},"dependencies":{"chalk":"^0.5.1","mixin-deep":"^0.1.0","parse-filepath":"^0.3.1"},"keywords":["blog","entry","filepath","link","path","permalinks","permanent","post","rewrite","rewriting","route","routes","routing","transformation","uri","url","url-routing"],"_id":"rte@0.4.0","_shasum":"611243e939af2aeda76fc862f4906ca08fc408e3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"611243e939af2aeda76fc862f4906ca08fc408e3","tarball":"http://registry-npm.ywwl.com/rte/download/rte-0.4.0.tgz","integrity":"sha512-VJZ0XT2aP9PmNcwR7/jPVCKlMT5pjwswybe3KU2HViE/5ngkTXSx/B4XPNEeFJUVcYDkUdtzDNTLwIatKx8VpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG4brZo/G7KgwvXciBrvdPG5zs24YY51D5bV8gK7kL/fAiEAwK0PXbvY7Z9/X8h7V7qPL+kn6w+rWB18wy/vXrQ9inI="}],"size":3867,"noattachment":false,"key":"/rte/-/rte-0.4.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":1414488549154,"_cnpm_publish_time":1414488549154,"dist-tags":{"latest":"2.0.1"}}