{"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":{"integrity":"sha512-n6KkmvKS0623igEVj3FF0OZs1gYYJ0o0Hj939yc1fyxl2xt+xYpLnzJB6xBSqOfV9ZFLEWodBBN/heZJahuIJQ==","shasum":"8c18a871096b71ee0e002976a4fe3374991c3074","tarball":"http://registry-npm.ywwl.com/slash/download/slash-5.0.0.tgz","fileCount":5,"unpackedSize":3293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtnjJR94ezBS0GqOlu6NUYCZk9mTxuuOi0qLtTO4+guAiEA6wZJR1lVMJmfbQQk3HQTlfC3WPIo0kWBOxGONQJUfJY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMqqiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAIQ//akTU3jO+79x8Q6nRHf4qa8ZH87XZiWUCGU7pI+wNj7ldaxHm\r\ncSV9I/eGz85yKEqROYmGfgZC6OHSCIJI8b161VkHZEyJm0DMgIsrDcDdXKJa\r\nXhVQ0Z+OQ+snRqoUspPP6qpAuBTMTYQy43uDzdoFcimkQVgkxf/3TkpqAvrn\r\nQdfuqTKIzxe/Hnzt6qaffI34lWQNiDvq/lCjBe7jl2FOIvX20KJQ/DiQeokM\r\n9LijquWqS/as8yvSkcq0YwdJj9h8aK7uj++3T85QQ5GDpjV/2tvc5nmgQBGB\r\nlh27iJcfsrovqZ5I8zTT5PLHvhPe+skXR55thKubxh094kkP0AGcf20Or0Hr\r\n2sOKOOWrYGsqulbb3moBaFWRrtoIuO7trXhrv9wcCfJGKSWY8CY1CtBPsXO6\r\nsMe+rJWLsMAIcodM++hhBFmPnM6ijBBbOfSUJ2+OURGt4KKNTiPLrZnamudP\r\nak+4NokMtZBlxFJ9WHRDL70VlWUYfD2t9MZjCgD8Bc51z43G/PuDQuWa49s6\r\n2KjYHkoRjmfcn+SN0lKs+fP+7hBb09+vs0wJ1FYTm0nFqffiFUriKxQWSGA3\r\nL8pagQPP0inKC6VSFz9N1BKo+lsYWPTGGXE0PtcG98zYInlfz6Pgj6h6eV44\r\nuxEoTTLJT5q9pDIVFyNYsFR2FeMQEveYL8A=\r\n=slNE\r\n-----END PGP SIGNATURE-----\r\n","size":1710,"noattachment":false,"key":"/slash/-/slash-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/slash_5.0.0_1664264865966_0.7130270807368944"},"_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","publish_time":1664264866126,"_cnpm_publish_time":1664264866126,"dist-tags":{"latest":"5.1.0"}}