{"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","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":1402935382438,"_cnpm_publish_time":1402935382438,"dist-tags":{"latest":"0.3.1"}}