{"name":"pathetic","version":"0.1.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"},"_id":"pathetic@0.1.0","dist":{"shasum":"d66b34da7f67db24c813657b0785f5287af4bab2","tarball":"http://registry-npm.ywwl.com/pathetic/download/pathetic-0.1.0.tgz","integrity":"sha512-wWAftGRncguov8ZJZKsD31ePM2hzcaF/Y12C+UcFjpgwUYIQn9NxTAurZl4MGqnFs5NhWkbblGo4Yq4E6eY/Ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1S1JH4P5VduudSXJbClbYoBBX/pCHtabAF4PYBw/veQIgfIpRKs3rvimblF5oQjgkqskIzaoU7tLanHYGOIN67r8="}],"size":1452,"noattachment":false,"key":"/pathetic/-/pathetic-0.1.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":1390952382781,"_cnpm_publish_time":1390952382781,"dist-tags":{"latest":"1.0.0"}}