slash
npmv5.1.0TypeScriptConvert Windows backslash paths to slash paths
Not recommended for new projects
No — slash should not be adopted for new projects. Last published 1219 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1219 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 3.2 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding slash to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=14.16
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the slash README.
import path from 'node:path';
import slash from 'slash';
const string = path.join('foo', 'bar');
// Unix => foo/bar
// Windows => foo\\bar
slash(string);
// Unix => foo/bar
// Windows => foo/barslash vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| slashthis page | 0 | 14 | MIT | 3 years ago |
| normalize-path | 72.6M | 1 | MIT | 1 day ago |
| path-key | 244.9M | 1 | MIT | 1 day ago |
| tildify | 0 | 1 | MIT | 1 day ago |
| color-convert | 299.6M | 1 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
Dependencies
Declared by slash v5.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on slash.
No description provided.
Jest's reporters
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
Jest plugin to use babel for transformation.
[type-definitions]: https://github.com/jestjs/jest/blob/main/packages/jest-types/src/Circus.ts
[Experimental] - 🚇 File crawling, watching and mapping for Metro
Delightful JavaScript Testing.
React Native CLI
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects
No description provided.
Relationship graph
Dependencies (left) and dependents (right) of slash.
Frequently installed together
A drop-in replacement for fs, making various improvements.
This packages is a collection of utilities and helper functions
This package contains shared types of Jest's packages.
TypeScript definitions for node
No description provided.
No description provided.
No description provided.
`jest-haste-map` is a module used by Jest, a popular JavaScript testing framework, to create a fast lookup of files in a project. It helps Jest efficiently locate and track changes in files during testing, making it particularly useful for large projects
Stringify any JavaScript value.
No description provided.
No description provided.
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
Release history
No releases in the last two years, typically about 211 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.1.0latest | 3 years ago | 3.2 KB | MIT |
| 5.0.1 | 3 years ago | 3.2 KB | MIT |
| 5.0.0 | 4 years ago | 3.2 KB | MIT |
| 4.0.0 | 5 years ago | 3.7 KB | MIT |
| 3.0.0 | 7 years ago | 3.4 KB | MIT |
| 2.0.0 | 8 years ago | 2.8 KB | MIT |
| 1.0.0 | 12 years ago | — | MIT |
| 0.1.3 | 12 years ago | — | MIT |
| 0.1.1 | 13 years ago | — | MIT |
| 0.1.0 | 13 years ago | — | MIT |
Overview
slash is an npm package that convert Windows backslash paths to slash paths. It has 14 known dependents in the graph. The latest version is 5.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need convert Windows backslash paths to slash paths and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use slash?
No — slash should not be adopted for new projects. Last published 1219 days ago.
How do I install slash?
Run `npm install slash` to add slash to your npm project.
What license is slash released under?
slash is distributed under the MIT license.
How popular is slash?
npm does not publish download counts. Within PackageGraph's crawl, 14 known packages depend on slash.
Is slash still maintained?
The most recent release of slash (v5.1.0) was published 3 years ago.
Does slash run install scripts?
No. slash does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.