UNPKG

motion

Version:

motion - moving development forward

61 lines (60 loc) 2.84 kB
{ "_args": [ [ "path-to-regexp@https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "path-to-regexp@0.1.3", "_id": "path-to-regexp@0.1.3", "_inCache": true, "_location": "/path-to-regexp", "_phantomChildren": {}, "_requested": { "name": "path-to-regexp", "raw": "path-to-regexp@https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "rawSpec": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "scope": null, "spec": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "type": "remote" }, "_requiredBy": [ "/express" ], "_resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "_shasum": "21b9ab82274279de25b156ea08fd12ca51b8aecb", "_shrinkwrap": null, "_spec": "path-to-regexp@https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.3.tgz", "_where": "/Users/nw/flint/packages/flint", "bugs": { "url": "https://github.com/component/path-to-regexp/issues" }, "component": { "scripts": { "path-to-regexp": "index.js" } }, "dependencies": {}, "description": "Express style path to RegExp utility", "devDependencies": { "istanbul": "^0.2.6", "mocha": "^1.17.1" }, "homepage": "https://github.com/component/path-to-regexp#readme", "keywords": [ "express", "regexp" ], "name": "path-to-regexp", "optionalDependencies": {}, "readme": "\n# Path-to-RegExp\n\n Turn an Express-style path string such as `/user/:name` into a regular expression.\n\n## Usage\n\n```javascript\nvar pathToRegexp = require('path-to-regexp');\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", "readmeFilename": "Readme.md", "repository": { "type": "git", "url": "git+https://github.com/component/path-to-regexp.git" }, "scripts": { "test": "istanbul cover _mocha -- -R spec" }, "version": "0.1.3" }