{"name":"pathname-match","version":"1.1.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":"f64905e2fabfcacf9c7f4be28540399cef101ebb","bugs":{"url":"https://github.com/yoshuawuyts/pathname-match/issues"},"homepage":"https://github.com/yoshuawuyts/pathname-match#readme","_id":"pathname-match@1.1.0","_shasum":"a9122c59d5929fce4f991fc1f4d95ded79ea8478","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.3.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"a9122c59d5929fce4f991fc1f4d95ded79ea8478","tarball":"http://registry-npm.ywwl.com/pathname-match/download/pathname-match-1.1.0.tgz","integrity":"sha512-EOc6efR14Oq7TlUrGiFs4D6WD2fwaEhjR+86FhPYK4v/ZGwzZqOy7lKOG/BJoG5a/Z+CypWhs8q2lN306jPP8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICccIU6O1LRrfojhBL/2BCQAuojdULiVnRxvncR/erABAiBhPwQIHeX95zfe/DuNO8Ux4jDmE0PFUaGDrrQ0WyuxBg=="}],"size":1898,"noattachment":false,"key":"/pathname-match/-/pathname-match-1.1.0.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":1438746770458,"_cnpm_publish_time":1438746770458,"dist-tags":{"latest":"1.2.0"}}