{"name":"pathetic","version":"0.3.0","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.0.2","merge":"~1.1.2","zip-object":"~0.1.0","clone":"~0.1.11"},"homepage":"https://github.com/scottcorgan/pathetic","_id":"pathetic@0.3.0","_shasum":"eb40853f881dd28e1970c8b669bd1aac403ffd8d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"eb40853f881dd28e1970c8b669bd1aac403ffd8d","tarball":"http://registry-npm.ywwl.com/pathetic/download/pathetic-0.3.0.tgz","integrity":"sha512-N5//2Rml109U7lkEzaVbZbae9dTUAu63sPMfTL/wC2clJlMAOrpFWIiogt2ZjsJlEVL/7yLPcyydA2Bh9kgrcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7yaR6lCQgYEsi7dVaitkdTv1Y2+lU2x90Es0kKu42XAiAtIYDrhmN8jLbJi8KCfWzlWFGhVD/ZsnXQNIt78T3A4Q=="}],"size":1497,"noattachment":false,"key":"/pathetic/-/pathetic-0.3.0.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":1399494977666,"_cnpm_publish_time":1399494977666,"dist-tags":{"latest":"1.0.0"}}