{"_id":"path-match","_rev":"366768","name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","dist-tags":{"latest":"1.2.4"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"time":{"modified":"2026-04-08T09:58:32.000Z","created":"2014-04-05T08:21:44.669Z","1.2.4":"2016-02-27T21:59:55.087Z","1.2.3":"2015-07-02T22:34:19.611Z","1.2.2":"2014-09-10T06:01:49.100Z","1.2.1":"2014-09-10T05:59:42.141Z","1.2.0":"2014-08-17T23:19:31.062Z","1.1.1":"2014-06-11T22:47:08.115Z","1.1.0":"2014-04-17T10:02:04.221Z","1.0.0":"2014-04-05T08:21:44.669Z"},"users":{"fchienvuhoang":true,"luuhoangnam":true,"karlbateman":true,"schpnpls":true,"parkerproject":true},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"git+https://github.com/pillarjs/path-match.git"},"versions":{"1.2.4":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.2.4","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pillarjs/path-match.git"},"dependencies":{"http-errors":"~1.4.0","path-to-regexp":"^1.0.0"},"devDependencies":{"istanbul":"^0.4.2","mocha":"^2.0.0"},"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"},"files":["index.js"],"gitHead":"f461d324572404943fbde1562dddee6e03fe383c","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"homepage":"https://github.com/pillarjs/path-match#readme","_id":"path-match@1.2.4","_shasum":"a62747f3c7e0c2514762697f24443585b09100ea","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"dist":{"shasum":"a62747f3c7e0c2514762697f24443585b09100ea","size":2233,"noattachment":false,"key":"/path-match/-/path-match-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.2.4.tgz"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/path-match-1.2.4.tgz_1456610392305_0.8316159313544631"},"directories":{},"publish_time":1456610395087,"_cnpm_publish_time":1456610395087,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.3":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.2.3","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pillarjs/path-match.git"},"dependencies":{"http-errors":"~1.3.1","path-to-regexp":"1"},"devDependencies":{"istanbul":"0","mocha":"2"},"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"},"files":["index.js"],"gitHead":"88aacc4c737b60cf781c236e09bcec18f6a743f7","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"homepage":"https://github.com/pillarjs/path-match#readme","_id":"path-match@1.2.3","_shasum":"a44ed5a0e9b345001fec36f1b5f9d53e3f2fb262","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.2","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"dist":{"shasum":"a44ed5a0e9b345001fec36f1b5f9d53e3f2fb262","size":2226,"noattachment":false,"key":"/path-match/-/path-match-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.2.3.tgz"},"directories":{},"publish_time":1435876459611,"_cnpm_publish_time":1435876459611,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.2":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.2.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"https://github.com/pillarjs/path-match"},"dependencies":{"http-errors":"~1.2.0","path-to-regexp":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"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"},"files":["index.js"],"gitHead":"f5960d720cf193f4f96f495089fd594d371d5614","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"homepage":"https://github.com/pillarjs/path-match","_id":"path-match@1.2.2","_shasum":"13878912f075858d2e858f08d6148ec1516dbb25","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"dist":{"shasum":"13878912f075858d2e858f08d6148ec1516dbb25","size":1585,"noattachment":false,"key":"/path-match/-/path-match-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.2.2.tgz"},"directories":{},"publish_time":1410328909100,"_cnpm_publish_time":1410328909100,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.1":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.2.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"https://github.com/pillarjs/path-match"},"dependencies":{"http-errors":"^1.2.0","path-to-regexp":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"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"},"files":["index.js"],"gitHead":"6eefc8f844c39a10fc58c65c0d6142a4317a9e29","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"homepage":"https://github.com/pillarjs/path-match","_id":"path-match@1.2.1","_shasum":"eb8623220bcd24dd361e6c0342271fe39fcc9da2","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"dist":{"shasum":"eb8623220bcd24dd361e6c0342271fe39fcc9da2","size":1584,"noattachment":false,"key":"/path-match/-/path-match-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.2.1.tgz"},"directories":{},"publish_time":1410328782141,"_cnpm_publish_time":1410328782141,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.2.0":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.2.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"https://github.com/pillarjs/path-match"},"dependencies":{"path-to-regexp":"1"},"devDependencies":{"istanbul":"0","mocha":"1"},"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"},"files":["index.js"],"gitHead":"36758365d4762b920413c6a53e97cfa7fb1e7a2d","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"homepage":"https://github.com/pillarjs/path-match","_id":"path-match@1.2.0","_shasum":"dcf4f31b9d640a7ca4b5617e177e697613dfd364","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"dist":{"shasum":"dcf4f31b9d640a7ca4b5617e177e697613dfd364","size":1575,"noattachment":false,"key":"/path-match/-/path-match-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.2.0.tgz"},"directories":{},"publish_time":1408317571062,"_cnpm_publish_time":1408317571062,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.1.1":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.1.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"git://github.com/expressjs/path-match"},"dependencies":{"path-to-regexp":"~0.2.1"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha --reporter spec"},"bugs":{"url":"https://github.com/expressjs/path-match/issues"},"homepage":"https://github.com/expressjs/path-match","_id":"path-match@1.1.1","_shasum":"382191bc8f4d861cfb1c45fd25a23b142699cd4c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"dist":{"shasum":"382191bc8f4d861cfb1c45fd25a23b142699cd4c","size":1997,"noattachment":false,"key":"/path-match/-/path-match-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.1.1.tgz"},"directories":{},"publish_time":1402526828115,"_cnpm_publish_time":1402526828115,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.1.0":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"git://github.com/expressjs/path-match"},"dependencies":{"path-to-regexp":"*"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha --reporter spec"},"bugs":{"url":"https://github.com/expressjs/path-match/issues"},"homepage":"https://github.com/expressjs/path-match","_id":"path-match@1.1.0","dist":{"shasum":"b624d074af0617ddce0f2fff5749211332cc7749","size":1880,"noattachment":false,"key":"/path-match/-/path-match-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"directories":{},"publish_time":1397728924221,"_cnpm_publish_time":1397728924221,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"},"1.0.0":{"name":"path-match","description":"wrapper around path-to-regexp for easy route parameters","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"keywords":["route","router","routing","path","regex","regexp","param","params"],"license":"MIT","repository":{"type":"git","url":"git://github.com/expressjs/path-match"},"dependencies":{"path-to-regexp":"*"},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha --reporter spec"},"bugs":{"url":"https://github.com/expressjs/path-match/issues"},"homepage":"https://github.com/expressjs/path-match","_id":"path-match@1.0.0","dist":{"shasum":"7da44edcd087c2128a9ca812b9ae7faabd12d2af","size":1854,"noattachment":false,"key":"/path-match/-/path-match-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-match/download/path-match-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"defunctzombie","email":""},{"name":"dougwilson","email":""},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"sindresorhus","email":""},{"name":"ulisesgascon","email":""}],"directories":{},"publish_time":1396686104669,"_cnpm_publish_time":1396686104669,"_hasShrinkwrap":false,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions"}},"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","_attachments":{},"homepage":"https://github.com/pillarjs/path-match#readme","bugs":{"url":"https://github.com/pillarjs/path-match/issues"},"license":"MIT"}