slash
npmv5.1.0TypeScriptConvert Windows backslash paths to slash paths
Overview
slash is an npm package that convert Windows backslash paths to slash paths. 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.
Relationship graph
Dependencies (left) and dependents (right) of slash.
Dependencies
Dev (3)
Used by
Popular packages that depend on slash.
Delightful JavaScript Testing.
Jest's reporters
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
Alternatives to slash
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Get the PATH environment variable key cross-platform
Resolve the path of a module like `require.resolve()` but from a given path
Extract the non-magic parent path from a glob string.
Cross platform child_process#spawn and child_process#spawnSync
{G,S}et object values using MongoDB-like path notation
Get the first path that exists on disk of multiple paths
Some useful utilities I often need
Find the root directory of a Node.js project or npm package
Resolve the path of a module like `require.resolve()` but from the current working directory
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Converts a source-map from/to different formats and allows adding/changing properties.
Frequently installed together
No description provided.
No description provided.
A drop-in replacement for fs, making various improvements.
TypeScript definitions for node
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
No description provided.
No description provided.
Version history
| Version | Published | License |
|---|---|---|
| 5.1.0latest | 3 years ago | MIT |
| 5.0.1 | 3 years ago | MIT |
| 5.0.0 | 3 years ago | MIT |
| 4.0.0 | 5 years ago | MIT |
| 3.0.0 | 7 years ago | MIT |
| 2.0.0 | 8 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.3 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 13 years ago | MIT |
Maintainers
Funding
Frequently asked questions
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?
slash has approximately 0 downloads per week and 1 known dependent packages.