{"name":"reverend","version":"0.2.0","description":"Merge an express-style path string with data to create a valid path.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js"},"repository":{"type":"git","url":"https://github.com/krakenjs/reverend.git"},"keywords":["express","path","merge","reverse"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"tape":"^2.10.2","istanbul":"^0.2.6","jshint":"^2.4.4"},"dependencies":{"path-to-regexp":"^0.1.2"},"bugs":{"url":"https://github.com/krakenjs/reverend/issues"},"homepage":"https://github.com/krakenjs/reverend","_id":"reverend@0.2.0","dist":{"shasum":"4038444c08b92eeca7233ce4b0ff252ab35959cc","tarball":"http://registry-npm.ywwl.com/reverend/download/reverend-0.2.0.tgz","integrity":"sha512-YzisHhHh6VSx7lp4huoaAOUkuonNWpImliXgRU08G4vtuWK7oh7fqnGDhbuWW9RXC319byFWQyHNlCxGJCCBVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvPnzGYGFHjW/d7K582Gx3j4n6lA8oLI0d8zzHFspbmAiBeMD2dzujNTvBkMlVBYm6ioKjiY49KEZsVDk7RAFfjlg=="}],"size":4867,"noattachment":false,"key":"/reverend/-/reverend-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}],"deprecated":"supplanted by path-to-regexp@v1.1.0#compile","readme":"**DEPRECATED**: `Reverend` has been deprecated and will no longer see updates. The underlying module used to create regular expressions from routes—[path-to-regexp](https://github.com/pillarjs/path-to-regexp)—has added reverse-routing functionality. Please favor it over `Reverend`. An api-compatible shim can be seen in the [shim](../shim/index.js) branch.\n\nreverend\n========\n\nLead Maintainer: [Jean-Charles Sisk](https://github.com/jasisk)  \n\n[![Build Status](https://travis-ci.org/krakenjs/reverend.svg?branch=master)](https://travis-ci.org/krakenjs/reverend)  \n\nMerge an express-style path string with data to create a valid path. Version 0.3.x adds support for\n[Custom Match](https://github.com/component/path-to-regexp#custom-match-parameters) and\n[Unnamed](https://github.com/component/path-to-regexp#unnamed-parameters) parameters as provided by path-to-regexp ^0.2.0.\nTo ensure compatibility, use the version of reverend compatible with path-to-regexp which most closely matches the\nversion your application uses.\n\n\n## Usage\n```javascript\nvar reverend = require('reverend');\n```\n\n### reverend(path, object);\n* `path`  (*String|Array*) - An express-style path, or an array of paths, of which only the first element will be used.\n* `object` (*Object*) - An object with keys matching the tokens to be replaced in the route.\n\n```javascript\n'use strict';\n\nvar reverend = require('reverend');\n\n\nvar path;\n\n// Path params\npath = reverend('/user/:id', { id: 5 });\n// '/user/5';\n\n// Optional path params\npath = reverend('/user/:id/:operation?', { id: 5 });\n// '/user/5/';\n\n// Multiple path params\npath = reverend('/user/:id/:operation', { id: 5, operation: address });\n// '/user/5/address';\n\n// Custom match parameters\npath = reverend('/posts/:id(\\\\d+)', { id: 5 });\n// '/post/5'\n\npath = reverend('/posts/:id(\\\\d+)', { id: 'foo' }); // throws\n\n// Unnamed params\npath = reverend('/:foo/(.*)', { foo: 'foo', 0: 'bar' });\n// '/foo/bar'\n\n```\n\n## License\nMIT\n\n## Tests, Coverage, Linting\n```javascript\n$ npm test\n```\n```javascript\n$ npm run cover\n```\n```javascript\n$ npm run lint\n```\n","publish_time":1395950164245,"_cnpm_publish_time":1395950164245,"dist-tags":{"latest":"0.3.1"}}