Converts Windows backslash paths to forward slash paths: foo\\bar ➔ foo/bar. Normalizes file paths for cross-platform compatibility, especially useful when dealing with Windows-generated paths in JavaScript environments. A tiny, dependency-free utility that ensures consistent path formatting, simplifying file system operations and string manipulation across different operating systems. Ideal for build tools, code generators, and any application requiring platform-independent path handling.
The npm package slash has infrequent releases. Initial development occurred in 2013-2014. Major versions were released roughly every 2-3 years (v1 in 2014, v2 in 2018, v3 in 2019, v4 in 2021, and v5 in 2022). The latest activity was in April and May 2023 with minor/patch versions. There have been no further releases since May 2023.
Slash's npm package downloads show steady growth from February 2024 to July 2025, peaking at 483 million in June 2025. August 2025 downloads are significantly lower, at 115 million, but this is incomplete data as of August 11th. Overall, usage of the Slash package increased notably over the observed period.