{"name":"path-to-regexp","description":"Express style path to RegExp utility","version":"0.1.7","files":["index.js","LICENSE"],"scripts":{"test":"istanbul cover _mocha -- -R spec"},"keywords":["express","regexp"],"component":{"scripts":{"path-to-regexp":"index.js"}},"license":"MIT","repository":{"type":"git","url":"https://github.com/component/path-to-regexp.git"},"devDependencies":{"mocha":"^1.17.1","istanbul":"^0.2.6"},"readme":"# Path-to-RegExp\n\nTurn an Express-style path string such as `/user/:name` into a regular expression.\n\n**Note:** This is a legacy branch. You should upgrade to `1.x`.\n\n## Usage\n\n```javascript\nvar pathToRegexp = require('path-to-regexp');\n```\n\n### pathToRegexp(path, keys, options)\n\n - **path** A string in the express format, an array of such strings, or a regular expression\n - **keys** An array to be populated with the keys present in the url.  Once the function completes, this will be an array of strings.\n - **options**\n   - **options.sensitive** Defaults to false, set this to true to make routes case sensitive\n   - **options.strict** Defaults to false, set this to true to make the trailing slash matter.\n   - **options.end** Defaults to true, set this to false to only match the prefix of the URL.\n\n```javascript\nvar keys = [];\nvar exp = pathToRegexp('/foo/:bar', keys);\n//keys = ['bar']\n//exp = /^\\/foo\\/(?:([^\\/]+?))\\/?$/i\n```\n\n## Live Demo\n\nYou can see a live demo of this library in use at [express-route-tester](http://forbeslindesay.github.com/express-route-tester/).\n\n## License\n\n  MIT\n","readmeFilename":"Readme.md","bugs":{"url":"https://github.com/component/path-to-regexp/issues"},"homepage":"https://github.com/component/path-to-regexp","_id":"path-to-regexp@0.1.7","_shasum":"df604178005f522f15eb4490e7247a1bfaa67f8c","_from":"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz","_resolved":"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"}