{"_id":"slash","_rev":"2975738","name":"slash","description":"Convert Windows backslash paths to slash paths","dist-tags":{"latest":"5.1.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-06-15T08:27:45.000Z","created":"2013-07-18T23:34:07.348Z","5.1.0":"2023-05-09T17:07:03.367Z","5.0.1":"2023-04-25T19:59:08.127Z","5.0.0":"2022-09-27T07:47:46.126Z","4.0.0":"2021-04-14T07:07:46.753Z","3.0.0":"2019-04-28T04:26:00.409Z","2.0.0":"2018-03-23T08:01:41.518Z","1.0.0":"2014-08-13T10:15:02.780Z","0.1.3":"2014-04-30T22:47:43.354Z","0.1.1":"2013-10-08T19:09:41.668Z","0.1.0":"2013-07-18T23:34:07.348Z"},"users":{"passy":true,"tommyzzm":true,"lshearer":true,"itonyyo":true,"kserks":true,"iamstarkov":true,"huhgawz":true,"cblumer":true,"balazserdos":true,"wujr5":true,"marcrobinson":true,"vboctor":true,"hsiang":true,"jochemstoel":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"versions":{"5.1.0":{"name":"slash","version":"5.1.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","seperator","slash","backslash","windows","convert"],"devDependencies":{"ava":"^5.2.0","tsd":"^0.28.1","xo":"^0.54.2"},"gitHead":"98b618f5a3bfcb5dd374b204868818845b87bb2f","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@5.1.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"be3adddcdf09ac38eebe8dcdc7b1a57a75b095ce","size":1688,"noattachment":false,"key":"/slash/-/slash-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-5.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_5.1.0_1683652023209_0.5292883174098482"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-09T17:07:03.367Z","publish_time":1683652023367,"_source_registry_name":"default","_cnpm_publish_time":1683652023367},"5.0.1":{"name":"slash","version":"5.0.1","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","seperator","slash","backslash","windows","convert"],"devDependencies":{"ava":"^4.3.3","tsd":"^0.24.1","xo":"^0.52.3"},"gitHead":"8659627938cde71310dc25871eea776ff59485b8","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@5.0.1","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"c354c3a49c0d3b4da1cb0bbeb15a85c2a6defa71","size":1684,"noattachment":false,"key":"/slash/-/slash-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-5.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_5.0.1_1682452747936_0.13160998782923716"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-25T19:59:08.127Z","publish_time":1682452748127,"_cnpm_publish_time":1682452748127},"5.0.0":{"name":"slash","version":"5.0.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","seperator","slash","backslash","windows","convert"],"devDependencies":{"ava":"^4.3.3","tsd":"^0.24.1","xo":"^0.52.3"},"gitHead":"205c404ecf35b7a7a8a687d8d3b79101aaaa9fba","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@5.0.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"8c18a871096b71ee0e002976a4fe3374991c3074","size":1710,"noattachment":false,"key":"/slash/-/slash-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_5.0.0_1664264865966_0.7130270807368944"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-27T10:20:48.956Z","publish_time":1664264866126,"_cnpm_publish_time":1664264866126},"4.0.0":{"name":"slash","version":"4.0.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","seperator","slash","backslash","windows","convert"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"b5cdd12272f94cfc37c01ac9c2b4e22973e258e5","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@4.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2422372176c4c6c5addb5e2ada885af984b396a7","size":2002,"noattachment":false,"key":"/slash/-/slash-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_4.0.0_1618384066606_0.19573108233420888"},"_hasShrinkwrap":false,"publish_time":1618384066753,"_cnpm_publish_time":1618384066753},"3.0.0":{"name":"slash","version":"3.0.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","seperator","slash","backslash","windows","convert"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"262981c1fca19193a20657ac99690214d9483d0e","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6539be870c165adbd5240220dbe361f1bc4d4634","size":1840,"noattachment":false,"key":"/slash/-/slash-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_3.0.0_1556425560214_0.8479364180448674"},"_hasShrinkwrap":false,"publish_time":1556425560409,"_cnpm_publish_time":1556425560409},"2.0.0":{"name":"slash","version":"2.0.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/slash.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","seperator","sep","slash","backslash","windows","win"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"0d8c8d1f50b6634b86248705a1ee9c3ad6707ebc","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash#readme","_id":"slash@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"de552851a1759df3a8f206535442f5ec4ddeab44","size":1695,"noattachment":false,"key":"/slash/-/slash-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_2.0.0_1521792101357_0.30105296160091255"},"_hasShrinkwrap":false,"publish_time":1521792101518,"_cnpm_publish_time":1521792101518},"1.0.0":{"name":"slash","version":"1.0.0","description":"Convert Windows backslash paths to slash paths","keywords":["path","seperator","sep","slash","backslash","windows","win"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"repository":{"type":"git","url":"git://github.com/sindresorhus/slash"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"engines":{"node":">=0.10.0"},"license":"MIT","files":["index.js"],"gitHead":"c801dd4568ad9380b534067eabe88942394f82ff","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash","_id":"slash@1.0.0","_shasum":"c41f2f6c39fc16d1cd17ad4b5d896114ae470d55","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"c41f2f6c39fc16d1cd17ad4b5d896114ae470d55","size":1020,"noattachment":false,"key":"/slash/-/slash-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-1.0.0.tgz"},"directories":{},"publish_time":1407924902780,"_cnpm_publish_time":1407924902780,"_hasShrinkwrap":false},"0.1.3":{"name":"slash","version":"0.1.3","description":"Convert Windows backslash paths to slash paths","keywords":["path","seperator","sep","slash","backslash","windows","win"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"main":"slash.js","repository":{"type":"git","url":"git://github.com/sindresorhus/slash"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"engines":{"node":">=0.8.0"},"license":"MIT","files":["slash.js"],"bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"homepage":"https://github.com/sindresorhus/slash","_id":"slash@0.1.3","dist":{"shasum":"aa710c8ef50b8e1d187ad6cff46f38c656ba0e57","size":1219,"noattachment":false,"key":"/slash/-/slash-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1398898063354,"_cnpm_publish_time":1398898063354,"_hasShrinkwrap":false},"0.1.1":{"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"],"readmeFilename":"readme.md","_id":"slash@0.1.1","dist":{"shasum":"e3b93c40a94a547a246367b71b8c31a793521a65","size":1259,"noattachment":false,"key":"/slash/-/slash-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1381259381668,"_cnpm_publish_time":1381259381668,"_hasShrinkwrap":false},"0.1.0":{"name":"slash","version":"0.1.0","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"],"readmeFilename":"readme.md","_id":"slash@0.1.0","dist":{"shasum":"1726ee854d6a95c056dc697ec8d5be9a43926243","size":1129,"noattachment":false,"key":"/slash/-/slash-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/slash/download/slash-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1374190447348,"_cnpm_publish_time":1374190447348,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/slash#readme","bugs":{"url":"https://github.com/sindresorhus/slash/issues"},"license":"MIT"}