{"name":"slash","version":"0.1.1","description":"Convert Windows backslash paths to slash paths","keywords":["path","seperator","sep","slash","backslash","windows","win"],"homepage":"https://github.com/sindresorhus/slash","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"main":"slash.js","repository":{"type":"git","url":"git://github.com/sindresorhus/slash.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.11.0"},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT"}],"files":["slash.js"],"_id":"slash@0.1.1","dist":{"shasum":"e3b93c40a94a547a246367b71b8c31a793521a65","tarball":"http://registry-npm.ywwl.com/slash/download/slash-0.1.1.tgz","integrity":"sha512-ItT3ioIfI071Qdy7fRqW+gI5NQtsx7kN1TC7l56vNlJscU/tZAPul5gUrOSf/MPtUGaXvLk7cm2ljO7Rhm3A3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1GH3DDqmFn+ytiwb61IkPLTvsI6SzqqAD5ufUecVn8AiB1L6hzh23IlVWeNLjYe/RaVs7mzrQUxZTRE7n1Bf6b2w=="}],"size":1259,"noattachment":false,"key":"/slash/-/slash-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# slash\n\n> Convert Windows backslash paths to slash paths: `foo\\\\bar` ➔ `foo/bar`\n\n[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths.\n\nThis was created since the `path` methods in Node.js outputs `\\\\` paths on Windows.\n\n## Install\n\n```sh\nnpm install slash\n```\n\n## Usage\n\n```js\nimport path from 'node:path';\nimport slash from 'slash';\n\nconst string = path.join('foo', 'bar');\n// Unix    => foo/bar\n// Windows => foo\\\\bar\n\nslash(string);\n// Unix    => foo/bar\n// Windows => foo/bar\n```\n\n## API\n\n### slash(path)\n\nType: `string`\n\nAccepts a Windows backslash path and returns a path with forward slashes.\n","publish_time":1381259381668,"_cnpm_publish_time":1381259381668,"dist-tags":{"latest":"5.1.0"}}