{"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.1","homepage":"https://github.com/jonschlinkert/rte","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/rte.git"},"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":"^1.1.2","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":"41fe986b8804dbcf64772ea63490623c398e151b","_id":"rte@2.0.1","_shasum":"487492da4d7c5a4f01b9853a197c626560b586b2","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"487492da4d7c5a4f01b9853a197c626560b586b2","tarball":"http://registry-npm.ywwl.com/rte/download/rte-2.0.1.tgz","integrity":"sha512-g38yOwGL63+iXsviu5K9kgk5jKaNgLNtt56M18Uz34h1JwI/QZ616Ad4OuEOwHckt/2akn+RkXg3qFMX/1qn0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkn52MkmY0naVlLUsImAKPQdVoVBNMmXHNiIB81a6D7gIgZHpCi8JA9cvwPG4XRRbOJTAiXShNKc1T13/9NSlE5lc="}],"size":2989,"noattachment":false,"key":"/rte/-/rte-2.0.1.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":1433105125729,"_cnpm_publish_time":1433105125729,"dist-tags":{"latest":"2.0.1"}}