{"name":"pathname-match","version":"1.1.1","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":"9162d534b27895a52521a6d740d92b8472491d5f","bugs":{"url":"https://github.com/yoshuawuyts/pathname-match/issues"},"homepage":"https://github.com/yoshuawuyts/pathname-match#readme","_id":"pathname-match@1.1.1","_shasum":"b724a9669d6d8e3ba6c98f917407ac598fdb3edb","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"b724a9669d6d8e3ba6c98f917407ac598fdb3edb","tarball":"http://registry-npm.ywwl.com/pathname-match/download/pathname-match-1.1.1.tgz","integrity":"sha512-nGQZiwWhiMuHpm3bFyeiGFXgF/yGIolZEAL3wRVbzvhXtOJ87B5XqeKe3lL9JOGzJRharLCeyvgaLLjwAn+L9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFa9nOtMQcG8WB46kw3916Z+DNX4nTG6eyei9alLwA49AiEAqT0mftMaTbz78W3Z0zg+/in2ITpr0x7V+XL4Og7K4qs="}],"size":2000,"noattachment":false,"key":"/pathname-match/-/pathname-match-1.1.1.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":1453520796485,"_cnpm_publish_time":1453520796485,"dist-tags":{"latest":"1.2.0"}}