{"name":"pathname-match","version":"1.1.3","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":"d6b5eac9aa9e31e37631f5f5b304294b16a56a86","bugs":{"url":"https://github.com/yoshuawuyts/pathname-match/issues"},"homepage":"https://github.com/yoshuawuyts/pathname-match#readme","_id":"pathname-match@1.1.3","_shasum":"7c0f5644122ab62c6d741b2ef3451c10cdd24ca1","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"7c0f5644122ab62c6d741b2ef3451c10cdd24ca1","tarball":"http://registry-npm.ywwl.com/pathname-match/download/pathname-match-1.1.3.tgz","integrity":"sha512-KMu7/blcSXKyACB7Jzvde3N9T4H4yfm0ZlpHo9U/ws2+pwUGOwc7hUlj5lC6NnKK2N/grmQmiKnVL2wLI7bVtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGXvmYY4SBEEMscb1vghU7/gBrY4s1u0gbXYgJcVJ/GAIhAPN0WaNrT+I6QlNEKvXo6pXkniRQDuiO3Gj4X8dyQUE/"}],"size":1995,"noattachment":false,"key":"/pathname-match/-/pathname-match-1.1.3.tgz"},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"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":1454209834374,"_cnpm_publish_time":1454209834374,"dist-tags":{"latest":"1.2.0"}}