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