{"_id":"slasher","_rev":"1745582","name":"slasher","description":"Prefix a path with leading slash","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:23:46.000Z","created":"2014-01-16T18:23:10.924Z","1.1.0":"2014-11-17T22:10:30.936Z","1.0.0":"2014-11-17T21:10:11.293Z","0.1.5":"2014-04-29T19:15:16.705Z","0.1.4":"2014-03-27T21:17:46.554Z","0.1.3":"2014-03-05T22:18:42.772Z","0.1.2":"2014-01-16T22:29:29.427Z","0.1.1":"2014-01-16T21:50:22.325Z","0.1.0":"2014-01-16T18:23:10.924Z"},"users":{},"author":{"name":"Scott Corgan"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"versions":{"1.1.0":{"name":"slasher","version":"1.1.0","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/index.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tap-dot":"^0.2.3","tap-spec":"^1.0.1","tape":"^3.0.3"},"dependencies":{"toxic":"^1.0.0"},"gitHead":"d7a2e3b3f596934bec332d25fb75b5d995dd6bbd","homepage":"https://github.com/scottcorgan/slasher","_id":"slasher@1.1.0","_shasum":"6e6550a309b7a1973b53e0fd60f981b10f54632f","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"6e6550a309b7a1973b53e0fd60f981b10f54632f","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-1.1.0.tgz","integrity":"sha512-zQF5Xlk/aa3FGH5SMSh/zyp5Sveb0hQfie0aElJTJ7Q5QJT9xgKmyLJLfKlXteEdPYpOYRmnXaVQel/KFDYgkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClR3cEeJ434On4sEju+vomOjWJYzWRFhInAZvbP1ryjAIgZ9a9Lp4rIKZwPmb0movYIR/2++l7tJDhTWHjO5s3iBY="}],"size":6616,"noattachment":false,"key":"/slasher/-/slasher-1.1.0.tgz"},"publish_time":1416262230936,"_cnpm_publish_time":1416262230936},"1.0.0":{"name":"slasher","version":"1.0.0","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/index.js | tap-spec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tap-dot":"^0.2.3","tap-spec":"^1.0.1","tape":"^3.0.3"},"gitHead":"8811a07bdce2c9ec22278a600c7b6048adeef365","homepage":"https://github.com/scottcorgan/slasher","_id":"slasher@1.0.0","_shasum":"24f4b0a4c17d13838882d49c89faf5cce62fb976","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"24f4b0a4c17d13838882d49c89faf5cce62fb976","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-1.0.0.tgz","integrity":"sha512-97sDAiXL9tkrROW2R+ddpJUhivGHbnSwLBgG8nnKdfLmMB5ndcYR7wV0/i5TC4sQSMmHrzmIplGsDdTzDnXUbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmWy5IZDAu3YjSk4MBKeP5+7ZtHJqCE2nO4nmNYf0YFQIhAN+E8IexCC5ZFx0Kow28eOhA2dA3MOSc9FeVUAXfwbzA"}],"size":6937,"noattachment":false,"key":"/slasher/-/slasher-1.0.0.tgz"},"publish_time":1416258611293,"_cnpm_publish_time":1416258611293},"0.1.5":{"name":"slasher","version":"0.1.5","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/index.js | tap-dot"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3","tap-dot":"^0.2.1"},"homepage":"https://github.com/scottcorgan/slasher","_id":"slasher@0.1.5","dist":{"shasum":"4bed26b3670a5913a4c3517f439e1dc6ef740bc8","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.5.tgz","integrity":"sha512-+fXwNxfu7lbruhmF/K2LGiiqqxV0K//MRUV0lLlFgwoebZWtiiniAZOpgiS9nBJfIqTgLVA54XChDasD0dMlrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUYDFO3NZ61MrHPwI7czFy0iewZpJFZ6dqNVlBPUUK8AIgShOOGilGBDyW51uTeibTO4eefDCKGe4Q9vR48wY0Lp4="}],"size":1606,"noattachment":false,"key":"/slasher/-/slasher-0.1.5.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1398798916705,"_cnpm_publish_time":1398798916705},"0.1.4":{"name":"slasher","version":"0.1.4","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/index.js | tap-dot"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3","tap-dot":"^0.2.1"},"homepage":"https://github.com/scottcorgan/slasher","_id":"slasher@0.1.4","dist":{"shasum":"2ec2631467b6631c5ef7cfebcad6ac0df080a63e","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.4.tgz","integrity":"sha512-MiPuCVvizySB9xMoljxDhy1OcF6W7KBjRvaLgyenWmEDY5IVN/1+/hb4+V8+UUOG3OJhGOCwmvFwRUFe1CCUEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjE7lKF9adtkq273y6z5Cs7ZXnIa7XaCCvAkVOorGjoAiBsmIRNvePAl79QwmCBP/SwOka/VVLaHX2HLjXZRWX46Q=="}],"size":1520,"noattachment":false,"key":"/slasher/-/slasher-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1395955066554,"_cnpm_publish_time":1395955066554},"0.1.3":{"name":"slasher","version":"0.1.3","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"homepage":"https://github.com/scottcorgan/slasher","_id":"slasher@0.1.3","dist":{"shasum":"41b4b47476c20ba3e5d614dd7ec94b8a7802083d","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.3.tgz","integrity":"sha512-/8Rdj2XU6LS1IoSO5C89z3+IzjcMlGP8p8fqlDoTizdPodDlG/f/jpQdrwjd3hHHwd0rpbtSbZ2/fzNGjYvw5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9h4BeKleh7NAG/WEZQVqdAjYZeA11l/wlmu3xAAtUnwIhAKslihMXrsUaDk6M1xCe5YQGFrF6dcyc5S9I0wdG9Pvf"}],"size":1458,"noattachment":false,"key":"/slasher/-/slasher-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394057922772,"_cnpm_publish_time":1394057922772},"0.1.2":{"name":"slasher","version":"0.1.2","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"_id":"slasher@0.1.2","dist":{"shasum":"e2e833f5145edf62aeb53fd59dd4189859eb42ec","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.2.tgz","integrity":"sha512-/VIWfNC0a2KgPTHkF3y0gK8gy7dYj/qYyB0+xLAE0x3k7MrRAL2FJWTpJNbrIUiQYWKCNPjVzwFgnAEgl7NxoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBf89Cy4lJvDWVydckuSuwF7W8J2r50iUXaHfbVpGuEaAiEAwVP+ooN9UIKG0J7KA5sh7BCnZTHTrnBUPNcSh4X3xhQ="}],"size":1429,"noattachment":false,"key":"/slasher/-/slasher-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1389911369427,"_cnpm_publish_time":1389911369427},"0.1.1":{"name":"slasher","version":"0.1.1","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"_id":"slasher@0.1.1","dist":{"shasum":"e1fe0fe3f99ca4ff32cbe2d1abdd9e375e863af2","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.1.tgz","integrity":"sha512-FrPXBDTfZIHPNsqnzWZY95ME7o0ttyqDEqdqBZ2n6ZtP1rJIVmaH03522uQa+S7LvJyDxC3RS+gZn+lAiBazgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDGHp8l7RVOzm2E79NKgY1nfcVreXMzA+WisbGYkp2DAiAS0xL7A60225c/caWDDCMainIRJFYYr3q4XdcaNZxZNA=="}],"size":1401,"noattachment":false,"key":"/slasher/-/slasher-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1389909022325,"_cnpm_publish_time":1389909022325},"0.1.0":{"name":"slasher","version":"0.1.0","description":"Prefix a path with leading slash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | node_modules/.bin/tspec"},"repository":{"type":"git","url":"https://github.com/scottcorgan/slasher.git"},"keywords":["slash","prefix","normalize","path"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"devDependencies":{"tape":"~2.3.2","tap-spec":"~0.1.3"},"_id":"slasher@0.1.0","dist":{"shasum":"0305d040c4ff86c3da13909f1b54822c415a470b","tarball":"http://registry-npm.ywwl.com/slasher/download/slasher-0.1.0.tgz","integrity":"sha512-/5lwEUlpjUpk31082FMXFaJ2nY7K1PTCsrXzm8AnVZK9N2PMxCqVw6Y1yd0TtTdHkToTXPWjpdEniYfINUIPZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTfxiB5GgrfOiTE5Yywg6rhf0TjLk9nTIgJJHu2Bo1dwIhAM5cs//rlDUAyDoWEJaYUk+qNGAMMDnooL5Xw37cbF9U"}],"size":869,"noattachment":false,"key":"/slasher/-/slasher-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1389896590924,"_cnpm_publish_time":1389896590924}},"readme":"# slasher\n\nPrefix a path with leading slash\n\n## Install\n\n```\nnpm install slasher --save\n```\n\n## Usage\n\n```js\nvar slash = require('slasher');\n\n// Strings\nvar pathname = 'some/path/to/something';\nvar pathname = slash(pathname); // OUTPUTS: '/some/path/to/something'\n\n// Objects\nvar paths = {\n  'some/route': 'index.html'\n};\nvar paths = slash(paths);\n\n// OUTPUTS:\n{\n  '/some/route': '/index.html'\n}\n```\n\n### slash(data[, options])\n\n* `data` - a string or object to slash\n* `options` - OPTIONAL. Set `key` or `value` to **false** to not add a slash to those values in an object\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```","_attachments":{},"homepage":"https://github.com/scottcorgan/slasher","bugs":{"url":"https://github.com/scottcorgan/slasher/issues"},"license":"MIT"}