{"name":"pathetic","version":"0.3.1","description":"Get values by path-like keys","main":"index.js","scripts":{"test":"mocha --runner spec test/index.js"},"repository":{"type":"git","url":"https://github.com/scottcorgan/pathetic.git"},"keywords":["path","path-to-regexp","express","connect","route"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/pathetic/issues"},"devDependencies":{"mocha":"~1.17.1","expect.js":"~0.2.0"},"dependencies":{"path-to-regexp":"0.1.x","merge":"~1.1.2","zip-object":"~0.1.0","clone":"~0.1.11"},"homepage":"https://github.com/scottcorgan/pathetic","_id":"pathetic@0.3.1","_shasum":"0cf4260fb9ed007209a95642bafa44c87f77d2a2","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"0cf4260fb9ed007209a95642bafa44c87f77d2a2","tarball":"http://registry-npm.ywwl.com/pathetic/download/pathetic-0.3.1.tgz","integrity":"sha512-jkczjRH/M3RavDfRYJFq49xy7I9U22hQhRqW4RlGBudcvEvC7kcDWPiehtl2r+psoHr603QtP2ZeOx9AozXmTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGooOvdpzI756KTMOeZtQCpzDYl01YNBBuBEQ8rt6qQaAiAPG0GjqXfbAYQyk8NgjLPGSkT9ls46vw4dyK1TMBzB3g=="}],"size":1500,"noattachment":false,"key":"/pathetic/-/pathetic-0.3.1.tgz"},"readme":"# pathetic\n\nGet values by path-like keys\n\n## Install\n\n```\nnpm install pathetic --save\n```\n\n## Usage\n\n```js\nvar pathetic = require('pathetic');\nvar routes = pathetic({\n  '/path': {key: 'value'},\n  '/user/:id': function (req, res) {\n    res.end('GOT IT!')\n  }\n});\n\nvar p = routes('/path'); // OUTPUTS: {key: 'value'}\nvar userPath = routes('/user/123');\n\nuserPath(req, res);\nconsole.log(userPath.params().id == 123);\n```\n\n## API\n\n### pathetic(paths)\n\n* `paths` - a key/value object containing the paths as the keys and anything for the values. This returns a method that lets you query against the table with a path. This uses Express-like paths and breaks out the parameters for your as well.\n\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```","publish_time":1399495252940,"_cnpm_publish_time":1399495252940,"dist-tags":{"latest":"1.0.0"}}