{"name":"pathname-match","version":"1.2.0","description":"Strip a url to only match the `pathname`.","main":"index.js","scripts":{"test":"standard && NODE_ENV=test node test","test-cov":"NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/pathname-match.git"},"keywords":["path","match","strip","wayfarer"],"license":"MIT","dependencies":{},"devDependencies":{"istanbul":"^0.3.5","standard":"^5.0.0","tape":"^3.0.3"},"files":["LICENSE","index.js","README.md"],"gitHead":"d1fee8e415807c0da27fe879ae2163f54c56555c","bugs":{"url":"https://github.com/yoshuawuyts/pathname-match/issues"},"homepage":"https://github.com/yoshuawuyts/pathname-match#readme","_id":"pathname-match@1.2.0","_shasum":"77cb8e3db1e41e4771c4942a9e4fecb610cc2d19","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"77cb8e3db1e41e4771c4942a9e4fecb610cc2d19","tarball":"http://registry-npm.ywwl.com/pathname-match/download/pathname-match-1.2.0.tgz","integrity":"sha512-2sp4kaJspQDp9HOYjNLyO5ZQdZhvnWD2/uF04OIdd8Ce447r9Y8yMRaVWRaX/CesrM0VjJ+jfOKJH+3hibf2FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpH5TpAHEm3U28vKxr0PTKBYq7zcMWR4txyMTKdxogGgIgAVlaalYVXvhCnkriORh+NS2Gsvz6lmMFD0+52eWrAZQ="}],"size":1961,"noattachment":false,"key":"/pathname-match/-/pathname-match-1.2.0.tgz"},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pathname-match-1.2.0.tgz_1472394227674_0.9237909228540957"},"directories":{},"readme":"# pathname-match\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Downloads][downloads-image]][downloads-url]\n\nStrip a url to only match the `pathname`. Weighs only 200 bytes gzipped.\n\n## Installation\n```bash\n$ npm install pathname-match\n```\n\n## Usage\n```js\nconst pathMatch = require('pathname-match')\nconst wayfarer  = require('wayfarer')\n\nconst router = wayfarer('/')\n\nrouter.on('/', => console.log('home'))\nrouter.on('/derp', => console.log('derp'))\nrouter.on('/404', => console.log('not found'))\n\nrouter.match(pathMatch('/derp/#foo?bin=baz'))\n// => '/derp'\n```\n\n## Why?\nIt's meant to feed the output to a router such as [wayfarer][wayfarer], and not\nhaving to worry about hashes in the url. This used to be part of wayfarer, but\nhas been stripped out to make the api even smaller.\n\n## See Also\n- [wayfarer][wayfarer]\n- [hash-match](https://github.com/sethvincent/hash-match)\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[npm-image]: https://img.shields.io/npm/v/pathname-match.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/pathname-match\n[travis-image]: https://img.shields.io/travis/yoshuawuyts/pathname-match.svg?style=flat-square\n[travis-url]: https://travis-ci.org/yoshuawuyts/pathname-match\n[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/pathname-match.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/yoshuawuyts/pathname-match?branch=master\n[downloads-image]: http://img.shields.io/npm/dm/pathname-match.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/pathname-match\n\n[wayfarer]: https://github.com/yoshuawuyts/wayfarer\n","publish_time":1472394229557,"_cnpm_publish_time":1472394229557,"dist-tags":{"latest":"1.2.0"}}