{"name":"pathetic","version":"0.2.0","description":"Get values by path-like keys","main":"index.js","scripts":{"test":"node_modules/.bin/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.0.2","merge":"~1.1.2","zip-object":"~0.1.0","clone":"~0.1.11"},"_id":"pathetic@0.2.0","dist":{"shasum":"f4a01916060560062b3d31dce3bd47b9cd4bbcb7","tarball":"http://registry-npm.ywwl.com/pathetic/download/pathetic-0.2.0.tgz","integrity":"sha512-a8XiWQoyRDyEhm7r9IaaIBK8ZLvoDTnoseqvKazm+xJwp3gWUJQo7HZHIIdSdT9L1AtlQHZt8VjuCdyTzrrkWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbGv6VXbm8t0MQh0gQm4/W8Fc5wwXY3pGeUF48agBfYAiBYdx26+/vvKZnx67JSe0d1ErHEBOPKGtpM1C1a446UrQ=="}],"size":1497,"noattachment":false,"key":"/pathetic/-/pathetic-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"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":1390961664824,"_cnpm_publish_time":1390961664824,"dist-tags":{"latest":"1.0.0"}}