Slash
Path separator normalizer for JavaScript that converts Windows backslash paths to forward-slash POSIX paths, keeping drive letters and UNC prefixes intact, used to make glob patterns and path comparisons platform-independent.
Slash at github.com/sindresorhus/slash is a free MIT path separator normalizer for JavaScript, npm slash 5.1.0 Node.js >= 14.16, converts Windows backslash paths to forward-slash POSIX paths keeping drive letters and UNC prefixes intact, makes glob patterns and path comparisons platform-independent, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Slash free?
Slash: Slash is free open-source software released under the MIT License; the slash package latest 5.1.0 on npm requires Node.js >= 14.16. It converts Windows backslash path strings to forward-slash POSIX form while preserving drive letters and UNC prefixes, so glob patterns, comparisons and generated paths behave the same across operating systems. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Slash free?
The code is free to self-host, but a hosted plan from the vendor may not be. Slash publishes its source, so cost depends on where you run it.
How much does Slash cost?
Slash is free open-source software released under the MIT License; the slash package latest 5.1.0 on npm requires Node.js >= 14.16. It converts Windows backslash path strings to forward-slash POSIX form while preserving drive letters and UNC prefixes, so glob patterns, comparisons and generated paths behave the same across operating systems. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Slash's current pricing?
On Slash's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Slash?
A path string such as srccomponentsButton is rewritten to src/components/Button; drive letters like C: and UNC shares are left untouched, and the normalized string can be fed to glob matchers or used in cross-platform comparisons.
How does pricing work?
The helper installs free under MIT with no seat license; it transforms strings in-process, and commercial support would be outside the open-source project.
How does Slash compare with other tools in Dev Workflow & Productivity?
Slash is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Slash | Open source | Slash is free open-source software released under the MIT License; the slash package latest 5.1.0 on npm requires Node.js >= 14.16. It converts Windows backslash path strings to forward-slash POSIX form while preserving drive letters and UNC prefixes, so glob patterns, comparisons and generated paths behave the same across operating systems. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Micromatch | Open source | Micromatch is free open-source software released under the MIT License; the micromatch package latest 4.0.8 on npm requires Node.js >= 8.6. It tests strings against brace, extglob, globstar and character-class patterns, matching or filtering file paths and names, and powers ignore and include rules in many build tools and linters. The package is stable with maintenance-level updates rather than frequent new features. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Normalize Path | Open source | Normalize Path is free open-source software released under the MIT License; the normalize-path package latest 3.0.0 on npm targets Node.js >= 0.10.0. It strips leading and trailing slashes, converts backslashes to forward slashes and collapses repeated separators into a consistent path string for glob matching and comparison. The package is a small stable utility in long-term maintenance, with no active feature roadmap. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Slash's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Slash is free open-source software released under the MIT License; the slash package latest 5.1.0 on npm requires Node.js >= 14.16. It converts Windows backslash path strings to forward-slash POSIX form while preserving drive letters and UNC prefixes, so glob patterns, comparisons and generated paths behave the same across operating systems. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Micromatch
Glob-pattern matching engine for JavaScript that matches strings against brace, extglob, globstar and character-class patterns, used to filter file lists and configure ignore rules in build tools and linters.
Normalize Path
Cross-platform path normalization utility for JavaScript that strips leading and trailing slashes, converts backslashes to forward slashes and collapses repeated separators, producing a consistent path string for matching and comparison.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
