{"_id":"slicer","_rev":"25699","name":"slicer","description":"A library to parse URI style strings into named segments.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"antz29","email":"jp@antz29.com"}],"time":{"modified":"2021-06-03T10:02:29.000Z","created":"2011-11-14T11:03:34.292Z","0.3.0":"2012-04-05T23:03:07.240Z","0.2.1":"2011-11-14T16:26:26.698Z","0.2.0":"2011-11-14T16:26:11.193Z","0.1.0":"2011-11-14T11:03:34.292Z"},"users":{},"author":{"name":"John Le Drew","email":"jp@antz29.com","url":"http://antz29.com"},"repository":{"type":"git","url":"git:/git://github.com/antz29/node-slicer.git"},"versions":{"0.3.0":{"author":{"name":"John Le Drew","email":"jp@antz29.com","url":"http://antz29.com"},"name":"slicer","description":"A library to parse URI style strings into named segments.","keywords":["uri","slice","segments"],"version":"0.3.0","homepage":"http://github.com/antz29/node-slicer","repository":{"type":"git","url":"git:/git://github.com/antz29/node-slicer.git"},"bugs":{"email":"slicer-bugs@antz29.com","url":"http://github.com/antz29/node-slicer/issues"},"engines":{"node":">=0.6.0"},"directories":{"lib":"./src/lib"},"main":"./src/lib/slicer.coffee","dependencies":{"coffee-script":"*"},"devDependencies":{"expresso":"*"},"scripts":{"test":"./node_modules/expresso/bin/expresso"},"_npmUser":{"name":"antz29","email":"jp@antz29.com"},"_id":"slicer@0.3.0","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"efff35322f80d0371f8f183ef1f72df285f1c01e","size":10240,"noattachment":false,"key":"/slicer/-/slicer-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slicer/download/slicer-0.3.0.tgz"},"maintainers":[{"name":"antz29","email":"jp@antz29.com"}],"publish_time":1333666987240,"_cnpm_publish_time":1333666987240,"_hasShrinkwrap":false},"0.2.1":{"author":{"name":"John Le Drew","email":"jp@antz29.com","url":"http://antz29.com"},"name":"slicer","description":"A library to parse URI style strings into named segments.","keywords":["uri","slice","segments"],"version":"0.2.1","homepage":"http://github.com/antz29/node-slicer","repository":{"type":"git","url":"git:/git://github.com/antz29/node-slicer.git"},"bugs":{"email":"slicer-bugs@antz29.com","url":"http://github.com/antz29/node-slicer/issues"},"engines":{"node":">=0.6.0"},"directories":{"lib":"./src/lib"},"main":"./src/lib/slicer.js","dependencies":{},"devDependencies":{"expresso":">=0.9.0"},"scripts":{"test":"./node_modules/expresso/bin/expresso"},"_npmUser":{"name":"antz29","email":"jp@antz29.com"},"_id":"slicer@0.2.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"582c05d5bd157c62d3d3d4d19fd6146ec57806c1","size":10240,"noattachment":false,"key":"/slicer/-/slicer-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slicer/download/slicer-0.2.1.tgz"},"maintainers":[{"name":"antz29","email":"jp@antz29.com"}],"publish_time":1321287986698,"_cnpm_publish_time":1321287986698,"_hasShrinkwrap":false},"0.2.0":{"author":{"name":"John Le Drew","email":"jp@antz29.com","url":"http://antz29.com"},"name":"slicer","description":"A library to parse URI style strings into named segments.","keywords":["uri","slice","segments"],"version":"0.2.0","homepage":"http://github.com/antz29/node-slicer","repository":{"type":"git","url":"git:/git://github.com/antz29/node-slicer.git"},"bugs":{"email":"slicer-bugs@antz29.com","url":"http://github.com/antz29/node-slicer/issues"},"engines":{"node":">=0.6.0"},"directories":{"lib":"./src/lib"},"main":"./src/lib/slicer.js","dependencies":{},"devDependencies":{"expresso":">=0.9.0"},"scripts":{"test":"./node_modules/expresso/bin/expresso"},"_npmUser":{"name":"antz29","email":"jp@antz29.com"},"_id":"slicer@0.2.0","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"046418338e3b9623046a087caedb519659a933d2","size":10240,"noattachment":false,"key":"/slicer/-/slicer-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slicer/download/slicer-0.2.0.tgz"},"maintainers":[{"name":"antz29","email":"jp@antz29.com"}],"publish_time":1321287971193,"_cnpm_publish_time":1321287971193,"_hasShrinkwrap":false},"0.1.0":{"author":{"name":"John Le Drew","email":"jp@antz29.com","url":"http://antz29.com"},"name":"slicer","description":"A library to parse URI style strings into named segments.","keywords":["uri","slice","segments"],"version":"0.1.0","homepage":"http://github.com/antz29/node-slicer","repository":{"type":"git","url":"git:/git://github.com/antz29/node-slicer.git"},"bugs":{"email":"slicer-bugs@antz29.com","url":"http://github.com/antz29/node-slicer/issues"},"engines":{"node":">=0.6.0"},"directories":{"lib":"./src/lib"},"main":"./src/lib/slicer.js","dependencies":{},"devDependencies":{"expresso":">=0.9.0","linter":">=0.0.7"},"scripts":{"test":"./node_modules/expresso/bin/expresso"},"_npmUser":{"name":"antz29","email":"jp@antz29.com"},"_id":"slicer@0.1.0","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.0","_defaultsLoaded":true,"dist":{"shasum":"e8be0b8af340627465460e1a5d61a770d66b8d98","size":10240,"noattachment":false,"key":"/slicer/-/slicer-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slicer/download/slicer-0.1.0.tgz"},"maintainers":[{"name":"antz29","email":"jp@antz29.com"}],"publish_time":1321268614292,"_cnpm_publish_time":1321268614292,"_hasShrinkwrap":false}},"readme":"# node-slicer - Slice your URIs\n\n## Installation\n\n    npm install slicer \n\n## What's it do?\n\nIt allows you to slice up URIs into named segments. This can be useful for routing requests etc.\n\n## Usage\n\n    // Create a new slicer (you can have multiple slicer instances that are independant of one another)\n    var s = require(\"slicer\").create();\n\n    // Add a segment identifier for the first URI segment with a default value of 'index'.\n    s.addSegmentIdentifier('controller','index');\n\n    // Add a segment identifier for the second URI segment with a default value of 'index'.\n    s.addSegmentIdentifier('action','index');\n\n    // Slice a URI\n    var uri = s.slice('/foo');\n\n    // Outputs: \n    // { \n    //     controller: 'foo',\n    //     action: 'index',\n    //     uri: [] \n    // }\n\n    // Note that the action segment is given the default value.\n\n    // Slice another URI\n    var uri = s.slice('/foo/bar/a/b/c');\n\n    // Outputs: \n    // {   \n    //     controller: 'foo',\n    //     action: 'bar',\n    //     uri: [ 'a', 'b', 'c' ] \n    // }\n\n    // Note that the uri element contains any non labeled segments.\n\n## Bugs\n\nSee <https://github.com/antz29/node-slicer/issues>.\n","_attachments":{},"homepage":"http://github.com/antz29/node-slicer","bugs":{"email":"slicer-bugs@antz29.com","url":"http://github.com/antz29/node-slicer/issues"}}