{"_id":"fileurl2path","_rev":"1-043f48963db43974f0b85d0f2d00d143","name":"fileurl2path","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"fileurl2path","version":"1.0.0","keywords":["file","url","path","convert"],"_id":"fileurl2path@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/fileurl2path#readme","bugs":{"url":"https://github.com/fabiospampinato/fileurl2path/issues"},"dist":{"shasum":"8b5bc28b56e6a0d15c57f27107259bf0d70912c7","tarball":"https://registry.npmjs.org/fileurl2path/-/fileurl2path-1.0.0.tgz","fileCount":15,"integrity":"sha512-107rvUzua0kzn7ysEHwHaxMdkl67oajuLAc/yPp2crLpadAd4ZMhUj/jk74kTSfWN2w+uDHcoh4QhbLwlyQAdg==","signatures":[{"sig":"MEUCIQCdZj2vt1ONJ3rIIWKag9iL4+Y6dJRguWezLwHygTtuMAIgRJxbUVWMk+iSbQZ8kDIfY+6ijHy0CqElYDu3O+msg6Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7095},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"ca8a79a7f73a1c07f6ab14f4a54943981835e10a","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/fileurl2path.git","type":"git"},"_npmVersion":"10.2.3","description":"A tiny function for converting a file URL to a file path.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.1","tsex":"^3.0.1","typescript":"^5.3.3"},"_npmOperationalInternal":{"tmp":"tmp/fileurl2path_1.0.0_1702310783562_0.5397393271672493","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"fileurl2path","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fileurl2path.git"},"description":"A tiny function for converting a file URL to a file path.","license":"MIT","version":"1.0.1","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["file","url","path","convert"],"devDependencies":{"fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"fileurl2path@1.0.1","gitHead":"ecf996251bc80fa697cd1a8970e4ee8b0e7f4f01","bugs":{"url":"https://github.com/fabiospampinato/fileurl2path/issues"},"homepage":"https://github.com/fabiospampinato/fileurl2path#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MbHD6gAJJQWbfGrfW7t20cfQtF7LjlFIEnu7/HT0GPoPJmY0J6JrO++1Gwo5bJjRQtd3UR9DTz2Hn4Yj8XmyHg==","shasum":"4eb92d9de7310827d369507b59ba82209c072d3d","tarball":"https://registry.npmjs.org/fileurl2path/-/fileurl2path-1.0.1.tgz","fileCount":9,"unpackedSize":4628,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFbAq3Z+lfV4kk4wWaNVXXizdeSwj6z5CM91vpjkELfAiEA9ZejjgSnku8faB+OdDqcyPK8cF3yve9GPjvtgV8dv8M="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fileurl2path_1.0.1_1737138341171_0.17444982818705368"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-11T16:06:23.561Z","modified":"2025-01-17T18:25:41.511Z","1.0.0":"2023-12-11T16:06:23.756Z","1.0.1":"2025-01-17T18:25:41.343Z"},"bugs":{"url":"https://github.com/fabiospampinato/fileurl2path/issues"},"homepage":"https://github.com/fabiospampinato/fileurl2path#readme","keywords":["file","url","path","convert"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/fileurl2path.git"},"description":"A tiny function for converting a file URL to a file path.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# fileurl2path\n\nA tiny function for converting a file URL to a path.\n\n## Install\n\n```sh\nnpm install fileurl2path\n```\n\n## Usage\n\n```ts\nimport fileurl2path from 'fileurl2path';\n\n// Let's convert a file URL, automatically detecting the OS\n\nconst url = 'file:///Users/fabio/Desktop/fileurl2path/index.js';\nconst path = fileurl2path ( url ); // => '/Users/fabio/Desktop/fileurl2path/index.js'\n\n// Let's convert a file URL, explicitly using the algorithm for POSIX paths\n\nconst url = 'file:///Users/fabio/Desktop/fileurl2path/index.js';\nconst path = fileurl2path.posix ( url ); // => '/Users/fabio/Desktop/fileurl2path/index.js'\n\n// Let's convert a file URL, explicitly using the algorithm for ~~wrong~~ Windows paths\n\nconst url = 'file:///C:/Users/fabio/Desktop/fileurl2path/index.js';\nconst path = fileurl2path.win32 ( url ); // => 'C:\\\\Users\\\\fabio\\\\Desktop\\\\fileurl2path\\\\index.js'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}