{"_id":"reverend","_rev":"1745863","name":"reverend","description":"Merge an express-style path string with data to create a valid path.","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"time":{"modified":"2026-11-19T14:39:08.000Z","created":"2014-03-11T17:32:37.127Z","0.3.1":"2015-05-12T21:36:54.824Z","0.3.0":"2014-06-16T16:16:22.438Z","0.2.0":"2014-03-27T19:56:04.245Z","0.1.0":"2014-03-11T17:32:37.127Z"},"users":{},"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"repository":{"type":"git","url":"https://github.com/krakenjs/reverend.git"},"versions":{"0.3.1":{"name":"reverend","version":"0.3.1","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"},"contributors":[{"name":"Eric Ferraiuolo","email":"eferraiuolo@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":"^1.0.1"},"gitHead":"ab231aa818e2c9918cae056fa4087584cee80599","bugs":{"url":"https://github.com/krakenjs/reverend/issues"},"homepage":"https://github.com/krakenjs/reverend","_id":"reverend@0.3.1","_shasum":"71fc316e449d094414a933674424e1953e012782","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jasisk","email":"jasisk@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"dist":{"shasum":"71fc316e449d094414a933674424e1953e012782","tarball":"http://registry-npm.ywwl.com/reverend/download/reverend-0.3.1.tgz","integrity":"sha512-I9mM6VpM0LGsIYzoEdCmiVUe1+m+KRFHG1aOLtJmHWHExwKFSGw8a8cCCeXwEJe3p9lAzOzBthZn5IoDSwbpVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEN0bBpsqaX4O2/4FMABVjFGGjtw0CBNm3tLJqbAjl0tAiEA+wetXnum2B5GckulZOgMsX3PN3gwjxV/A6F06cyyRQQ="}],"size":5865,"noattachment":false,"key":"/reverend/-/reverend-0.3.1.tgz"},"deprecated":"supplanted by path-to-regexp@v1.1.0#compile","publish_time":1431466614824,"_cnpm_publish_time":1431466614824},"0.3.0":{"name":"reverend","version":"0.3.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"},"contributors":[{"name":"Eric Ferraiuolo","email":"eferraiuolo@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.2.1"},"bugs":{"url":"https://github.com/krakenjs/reverend/issues"},"homepage":"https://github.com/krakenjs/reverend","_id":"reverend@0.3.0","_shasum":"c594e1bdb554052a59779bf029c9247f2d16a6f7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}],"dist":{"shasum":"c594e1bdb554052a59779bf029c9247f2d16a6f7","tarball":"http://registry-npm.ywwl.com/reverend/download/reverend-0.3.0.tgz","integrity":"sha512-/DXDYZJcQaYVXwIfhoJbRG8RjstEQR7qcyeOVSGYlu6uoylZAmxgPiLFFhnI71KNGJ16DscCY9YhCa/iJOapdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDXEPc4TCNcWqoRh+Xwkbr7kQmg0xV786iCSzjez90NpAiEA8+Z65TLvNqb3UWUPIF90xNrJ9A/4bmTpPWY3usgyJkw="}],"size":5635,"noattachment":false,"key":"/reverend/-/reverend-0.3.0.tgz"},"deprecated":"supplanted by path-to-regexp@v1.1.0#compile","publish_time":1402935382438,"_cnpm_publish_time":1402935382438},"0.2.0":{"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","publish_time":1395950164245,"_cnpm_publish_time":1395950164245},"0.1.0":{"name":"reverend","version":"0.1.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/totherik/reverend.git"},"keywords":["express","path","merge","reverse"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"license":"MIT","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/totherik/reverend/issues"},"homepage":"https://github.com/totherik/reverend","_id":"reverend@0.1.0","dist":{"shasum":"c27afac86525564a1e8f85580d3fcfed2491dcbb","tarball":"http://registry-npm.ywwl.com/reverend/download/reverend-0.1.0.tgz","integrity":"sha512-WHSjzjsBCEVhw3ns1W1ADjXNty8l+y3fJ8HNRvUZSFZzbjMA8ktT0V5FnTp2QvZOpEq5BwUQ4pS1VJy+WElKeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr0kkZQlndyDV8aHYt+STaFTGszjc49ba8HW8QQbEMIAIgdPtT+GoU1Km3QauhZ+ZD4u1nRdmheVwDS0YPN7xPHpo="}],"size":2641,"noattachment":false,"key":"/reverend/-/reverend-0.1.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","publish_time":1394559157127,"_cnpm_publish_time":1394559157127}},"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","_attachments":{},"homepage":"https://github.com/krakenjs/reverend","bugs":{"url":"https://github.com/krakenjs/reverend/issues"}}