{"_id":"path-match","_rev":"37-45d9b881a9344f47d59dc10ffab3a12b","name":"path-match","dist-tags":{"latest":"1.2.4"},"versions":{"1.0.0":{"name":"path-match","version":"1.0.0","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.0.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/path-match","bugs":{"url":"https://github.com/expressjs/path-match/issues"},"dist":{"shasum":"7da44edcd087c2128a9ca812b9ae7faabd12d2af","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.0.0.tgz","integrity":"sha512-tP87JxFZMS3wFTREiJHdGl+U3bKN5SHrWLiCNvQYJcfQXKjrjV+mGrj9FXwkj9td0jLbqElh25EQ5B+Qa311fg==","signatures":[{"sig":"MEUCIFTkJ07Im4D2Jngu3xCMmZYzEPl1YdIAPTV8KRiH2UvXAiEAjC+1uHVTb+UGfXLzMkDhV23E4jDqUdNUCbAxkUGEGuA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"git://github.com/expressjs/path-match","type":"git"},"_npmVersion":"1.4.6","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"path-to-regexp":"*"},"devDependencies":{"mocha":"*"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.1.0":{"name":"path-match","version":"1.1.0","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.1.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"homepage":"https://github.com/expressjs/path-match","bugs":{"url":"https://github.com/expressjs/path-match/issues"},"dist":{"shasum":"b624d074af0617ddce0f2fff5749211332cc7749","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.1.0.tgz","integrity":"sha512-cRl8u7tyJRRhV20HIn10aM2FzijLPca7ELInQW7Z/aZdUj16qJlTtQV831GDG4bNVN/RKFv4FIN1h+1grvsHfw==","signatures":[{"sig":"MEUCIQDIQkITBC/mJ/A35Kg1ApV1ODpZS3EslAoFoi8LTnPHJwIgIJPR521kBh4CtKbesn0pMJ4OfD5TrAR/6FzpEBnazSE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"git://github.com/expressjs/path-match","type":"git"},"_npmVersion":"1.4.6","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"path-to-regexp":"*"},"devDependencies":{"mocha":"*"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.1.1":{"name":"path-match","version":"1.1.1","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.1.1","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"homepage":"https://github.com/expressjs/path-match","bugs":{"url":"https://github.com/expressjs/path-match/issues"},"dist":{"shasum":"382191bc8f4d861cfb1c45fd25a23b142699cd4c","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.1.1.tgz","integrity":"sha512-W8T8ORDYMT4SAK14smYfBwM8WL6uGPYAjQaDHvvEkee1uqrLXN7BVBKcGjCLUx5cbddgjTixXS7ICHesvBs5Ug==","signatures":[{"sig":"MEQCID86Rjt1QpEtrXJRe0DpIOtZbjBaFqEnDZlfuKo6gbJYAiAVjtTtj/raYsyLSgz6crvnv+BiSJ5Hj59E0U/LUTljEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"382191bc8f4d861cfb1c45fd25a23b142699cd4c","scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"git://github.com/expressjs/path-match","type":"git"},"_npmVersion":"1.4.9","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"path-to-regexp":"~0.2.1"},"devDependencies":{"mocha":"*"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.0":{"name":"path-match","version":"1.2.0","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.2.0","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"homepage":"https://github.com/pillarjs/path-match","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"dist":{"shasum":"dcf4f31b9d640a7ca4b5617e177e697613dfd364","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.2.0.tgz","integrity":"sha512-qNtqSVMaI+ymiG2Wc3Q9cqACf1ADmuGH3vrluDDLmrLL6nA7+uVFfPvFhETiLMyM5+e0ec1Fpj8ojMkM9GqheA==","signatures":[{"sig":"MEYCIQCCB6NV5R3u1FZg3rhglUJfKnk10PXrWDyMPu4exwjA/gIhAJ5QzUzCcLHkX1+AcxwVFRtbP7cu3fCY5KDM3ZKxyvHl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"dcf4f31b9d640a7ca4b5617e177e697613dfd364","gitHead":"36758365d4762b920413c6a53e97cfa7fb1e7a2d","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/pillarjs/path-match","type":"git"},"_npmVersion":"1.4.21","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"path-to-regexp":"1"},"devDependencies":{"mocha":"1","istanbul":"0"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.1":{"name":"path-match","version":"1.2.1","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.2.1","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"homepage":"https://github.com/pillarjs/path-match","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"dist":{"shasum":"eb8623220bcd24dd361e6c0342271fe39fcc9da2","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.2.1.tgz","integrity":"sha512-1CsE0v9kHkjYieK0ZFp5cZ58atMPqw2QpYRWTFSuK9IJkWsnHRI8phN5KNb0Wd1dT/A4EHaGd8Zxhc5bRmWl7A==","signatures":[{"sig":"MEUCIQDUYdUJLuq7NsBYDgySkVxHrj71iO+GP0bErhqEhcTqvQIgTpRJNr3JvfgJOZudTcaOY46LTf8eNSAYA59ufWErFQw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"eb8623220bcd24dd361e6c0342271fe39fcc9da2","gitHead":"6eefc8f844c39a10fc58c65c0d6142a4317a9e29","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/pillarjs/path-match","type":"git"},"_npmVersion":"1.4.26","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"http-errors":"^1.2.0","path-to-regexp":"1"},"devDependencies":{"mocha":"1","istanbul":"0"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.2":{"name":"path-match","version":"1.2.2","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.2.2","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"homepage":"https://github.com/pillarjs/path-match","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"dist":{"shasum":"13878912f075858d2e858f08d6148ec1516dbb25","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.2.2.tgz","integrity":"sha512-aFRlvWUL4r9kMhmtODagP0eVD9WDVc3hlUxwrANTv9GddPPMOoWGqPjgFHX8GkQtPSD2pWRwv6E2PrEgTaA1iw==","signatures":[{"sig":"MEUCICNpQglx4RO3tMh4WLsK2vkwiUbb4F7qRdv0by3NzQQCAiEAl9UEDXfsWAM0wLr9/Spw7ggcZkGZUEwAnQtUHiEWy5s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"13878912f075858d2e858f08d6148ec1516dbb25","gitHead":"f5960d720cf193f4f96f495089fd594d371d5614","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"https://github.com/pillarjs/path-match","type":"git"},"_npmVersion":"1.4.26","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"dependencies":{"http-errors":"~1.2.0","path-to-regexp":"1"},"devDependencies":{"mocha":"1","istanbul":"0"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.3":{"name":"path-match","version":"1.2.3","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.2.3","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"homepage":"https://github.com/pillarjs/path-match#readme","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"dist":{"shasum":"a44ed5a0e9b345001fec36f1b5f9d53e3f2fb262","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.2.3.tgz","integrity":"sha512-k9kijKW11B48uOXOz5RN8UkZUQhNJpqTNPVScTHS7Y642sTTmpnZfq3gh6KF5Q+jKd1i4GxtJUScwY/NUILrtg==","signatures":[{"sig":"MEUCIQCurzUqC+Ln7IJ24WsgLUQHyCNj/c4oeN6vMOSlYwukSQIgCLDpauJCM5iwnpYHc0HEpvrFd+9dE2Dk994mfnw9vLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"a44ed5a0e9b345001fec36f1b5f9d53e3f2fb262","gitHead":"88aacc4c737b60cf781c236e09bcec18f6a743f7","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"git+https://github.com/pillarjs/path-match.git","type":"git"},"_npmVersion":"2.11.3","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"_nodeVersion":"2.3.2","dependencies":{"http-errors":"~1.3.1","path-to-regexp":"1"},"devDependencies":{"mocha":"2","istanbul":"0"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.4":{"name":"path-match","version":"1.2.4","keywords":["route","router","routing","path","regex","regexp","param","params"],"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","_id":"path-match@1.2.4","maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"homepage":"https://github.com/pillarjs/path-match#readme","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"dist":{"shasum":"a62747f3c7e0c2514762697f24443585b09100ea","tarball":"https://registry.npmjs.org/path-match/-/path-match-1.2.4.tgz","integrity":"sha512-UWlehEdqu36jmh4h5CWJ7tARp1OEVKGHKm6+dg9qMq5RKUTV5WJrGgaZ3dN2m7WFAXDbjlHzvJvL/IUpy84Ktw==","signatures":[{"sig":"MEUCIQD5N/6kxjfKlWLyw5dYfmvFIB84MAJO3on85chbXJEGSwIgKcu6S0vIzQujPw37QzBTHBSinvBFKCJWNKsb0Ed1Kew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"a62747f3c7e0c2514762697f24443585b09100ea","gitHead":"f461d324572404943fbde1562dddee6e03fe383c","scripts":{"test":"mocha --reporter spec","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"},"_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"repository":{"url":"git+https://github.com/pillarjs/path-match.git","type":"git"},"_npmVersion":"3.6.0","description":"wrapper around path-to-regexp for easy route parameters","directories":{},"_nodeVersion":"5.7.0","dependencies":{"http-errors":"~1.4.0","path-to-regexp":"^1.0.0"},"devDependencies":{"mocha":"^2.0.0","istanbul":"^0.4.2"},"_npmOperationalInternal":{"tmp":"tmp/path-match-1.2.4.tgz_1456610392305_0.8316159313544631","host":"packages-5-east.internal.npmjs.com"},"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"}},"time":{"created":"2014-04-05T08:21:44.669Z","modified":"2025-05-14T15:13:51.479Z","1.0.0":"2014-04-05T08:21:44.669Z","1.1.0":"2014-04-17T10:02:04.221Z","1.1.1":"2014-06-11T22:47:08.115Z","1.2.0":"2014-08-17T23:19:31.062Z","1.2.1":"2014-09-10T05:59:42.141Z","1.2.2":"2014-09-10T06:01:49.100Z","1.2.3":"2015-07-02T22:34:19.611Z","1.2.4":"2016-02-27T21:59:55.087Z"},"bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"author":{"url":"http://jongleberry.com","name":"Jonathan Ong","email":"me@jongleberry.com"},"license":"MIT","homepage":"https://github.com/pillarjs/path-match#readme","keywords":["route","router","routing","path","regex","regexp","param","params"],"repository":{"url":"git+https://github.com/pillarjs/path-match.git","type":"git"},"description":"wrapper around path-to-regexp for easy route parameters","maintainers":[{"name":"defunctzombie","email":"shtylman@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"ulisesgascon","email":"ulisesgascondev@gmail.com"}],"readme":"# path match\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nThin wrapper around [path-to-regexp](https://github.com/component/path-to-regexp) to make extracting the param names easier.\n\n```js\nvar route = require('path-match')({\n  // path-to-regexp options\n  sensitive: false,\n  strict: false,\n  end: false,\n});\n\n// create a match function from a route\nvar match = route('/post/:id');\n\n// match a route\nvar parse = require('url').parse;\nrequire('http').createServer(function (req, res) {\n  var params = match(parse(req.url).pathname);\n\n  // no match\n  if (params === false) {\n    res.statusCode = 404;\n    res.end();\n    return;\n  }\n\n  // the matched id\n  var id = params.id;\n\n  // do stuff with the ID\n})\n```\n\n[npm-image]: https://img.shields.io/npm/v/path-match.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/path-match\n[github-tag]: http://img.shields.io/github/tag/pillarjs/path-match.svg?style=flat-square\n[github-url]: https://github.com/pillarjs/path-match/tags\n[travis-image]: https://img.shields.io/travis/pillarjs/path-match.svg?style=flat-square\n[travis-url]: https://travis-ci.org/pillarjs/path-match\n[coveralls-image]: https://img.shields.io/coveralls/pillarjs/path-match.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/pillarjs/path-match?branch=master\n[david-image]: http://img.shields.io/david/pillarjs/path-match.svg?style=flat-square\n[david-url]: https://david-dm.org/pillarjs/path-match\n[license-image]: http://img.shields.io/npm/l/path-match.svg?style=flat-square\n[license-url]: LICENSE.md\n[downloads-image]: http://img.shields.io/npm/dm/path-match.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/path-match\n","readmeFilename":"README.md","users":{"schpnpls":true,"karlbateman":true,"luuhoangnam":true,"fchienvuhoang":true,"parkerproject":true}}