{"name":"rte","description":"Simple, server-side routing to complement the node.js path module.","version":"0.2.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":{"chai":"^1.9.1","mocha":"^1.18.2","verb":"^0.2.6","verb-tag-jscomments":"^0.1.2"},"dependencies":{"ext-ext":"^0.1.2","lodash":"^2.4.1","parse-filepath":"^0.2.0","permalinks":"^0.3.0","rename-path":"^0.1.0"},"keywords":["blog entry","blog post","filepath","link","path","permalinks","permanent link","rewrite","rewriting","route","routes","routing","transformation","uri","URL rewriting","url","url-routing"],"_id":"rte@0.2.0","_shasum":"b9b9afa9c664d5817ed17a74668fe71e01d5ee3f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b9b9afa9c664d5817ed17a74668fe71e01d5ee3f","tarball":"http://registry-npm.ywwl.com/rte/download/rte-0.2.0.tgz","integrity":"sha512-PuRkvAMMmh58QOyiALoqI48qM8lDF/96Jr6MZFG0nDUY0PS5adw8+5lHc1jE9ksoa0HDMgZpNYso1Cd/ZPSluA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHp29jN5gLpeJKQ4TcU36+rpp1f8YflFirdFl7AXFMEPAiB7dEmzyJRSxRtwB5vKNJO0se41c0RWfnAuZjTtt3VnUg=="}],"size":6493,"noattachment":false,"key":"/rte/-/rte-0.2.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":1403965210136,"_cnpm_publish_time":1403965210136,"dist-tags":{"latest":"2.0.1"}}