{"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":"http://registry-npm.ywwl.com/path-match/download/path-match-1.2.3.tgz","integrity":"sha512-k9kijKW11B48uOXOz5RN8UkZUQhNJpqTNPVScTHS7Y642sTTmpnZfq3gh6KF5Q+jKd1i4GxtJUScwY/NUILrtg==","signatures":[{"sig":"MEUCIQCurzUqC+Ln7IJ24WsgLUQHyCNj/c4oeN6vMOSlYwukSQIgCLDpauJCM5iwnpYHc0HEpvrFd+9dE2Dk994mfnw9vLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2226,"noattachment":false,"key":"/path-match/-/path-match-1.2.3.tgz"},"_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"},"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","publish_time":1435876459611,"deprecated":"This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions","_cnpm_publish_time":1435876459611,"dist-tags":{"latest":"1.2.4"}}