{"_id":"slash2","_rev":"1-46322d28ef19e791dbb6b94b8b6e8a5f","name":"slash2","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"slash2","version":"2.0.0","description":"Convert Windows backslash paths to slash paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sorrycc/slash2.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":"8474ffa472d7842451b4bf664b1395e8b3a9cfcf","bugs":{"url":"https://github.com/sorrycc/slash2/issues"},"homepage":"https://github.com/sorrycc/slash2#readme","_id":"slash2@2.0.0","_npmVersion":"6.0.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-7ElvBydJPi3MHU/KEOblFSbO/skl4Z69jKkFCpYIYVOMSIZsKi4gYU43HGeZPmjxCXrHekoDAAewphPQNnsqtA==","shasum":"f4e0a11708b8545b912695981cf7096f52c63487","tarball":"https://registry.npmjs.org/slash2/-/slash2-2.0.0.tgz","fileCount":4,"unpackedSize":2707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEJsDCRA9TVsSAnZWagAATZMP/22O1TfU5IviYwTBnyco\nqa7qIIxvmeIddpTit4ynqP0uuDcMI1Al/WSUld3DIJ9/i6Y8p+Sm6Y6kd4Lz\nCRVx3FweYcoaZN2MMX/tkRK5fYeWsCL91g4CnpIlC8H3EORBBNcDAzmqaK4X\nxL9EzYX1tQ037UFAjGo1GU/Ml3eeS8zBXXPDhNfyjVnURMRqodmYXkqOWubh\nJLF7T+zEffJXKyyPtg+tbO1uajYsUmhxXl+/bM0jqPTqME+IQbA84PCiacnp\nUdeOjQXXDzmyjdX93KCfIYE9SEc88bAx5ynMl6ubocmO0SfadcNNjJNrcnfY\njbjAEBNbVzvo870D128cuY+k9CgHAdfeUjBXpDTKdRHGGSaM1UtiBckfTVHX\nIhte326mM2iMhKnz6JFf+9R26Oi154ddQX4X27fSiku10O/b91ijI7fUoA6n\n9Zxr3RnGPniaOicq03Ug8zKaI4XxjmiiMXFz9gAWiBOHQYcul6cQrqdBFBwW\nucQ7UySbYmtiW9MA1P1XWbECjbACEpR+3Cdl0YvxquQSqGNsCl7U9Exbeu9N\nxrVyDv08h24wEeqezuZPTK/+AFOngm8DP9HtqVxxvDXL20hGUAhAvjEBnBeX\n9SgSPO8PwdBk1vhXzCxKvHCGj9man4zFrkutANggc0zeINl+XIefVqIYCkSG\nuq6x\r\n=W728\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRReFrbKTybP16cVzbmOJ9gNsTKSxkZqyN/Bo64jSf3AIgEOrCVBatlXhITHAEaGtpZfT7MbCKH9rt8lsMD2gGCrw="}]},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash2_2.0.0_1527814915158_0.2034305384533266"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-01T01:01:55.158Z","2.0.0":"2018-06-01T01:01:55.226Z","modified":"2022-05-18T01:58:18.221Z"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"description":"Convert Windows backslash paths to slash paths","homepage":"https://github.com/sorrycc/slash2#readme","keywords":["path","seperator","sep","slash","backslash","windows","win"],"repository":{"type":"git","url":"git+https://github.com/sorrycc/slash2.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"bugs":{"url":"https://github.com/sorrycc/slash2/issues"},"license":"MIT","readme":"# slash [![Build Status](https://travis-ci.org/sindresorhus/slash.svg?branch=master)](https://travis-ci.org/sindresorhus/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 and don't contain any non-ascii characters.\n\nThis was created since the `path` methods in Node outputs `\\\\` paths on Windows.\n\n\n## Install\n\n```\n$ npm install slash\n```\n\n\n## Usage\n\n```js\nconst path = require('path');\nconst slash = require('slash');\n\nconst str = path.join('foo', 'bar');\n// Unix    => foo/bar\n// Windows => foo\\\\bar\n\nslash(str);\n// Unix    => foo/bar\n// Windows => foo/bar\n```\n\n\n## API\n\n### slash(path)\n\nType: `string`\n\nAccepts a Windows backslash path and returns a slash path.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","readmeFilename":"readme.md"}