path-parse
npmv1.0.7Node.js path.parse() ponyfill
Overview
path-parse is an npm package that node.js path.parse() ponyfill. The latest version is 1.0.7, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need node.js path.parse() ponyfill and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of path-parse.
Used by
Popular packages that depend on path-parse.
Alternatives to path-parse
Get paths for storing things like data, config, cache, etc
Get the first path that exists on disk of multiple paths
Strip comments from JSON. Lets you use comments in your JSON files!
ES6 spec-compliant RegExp.prototype.flags shim.
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Find a file or directory by walking up parent directories — Zero dependencies
Find a file or directory by walking up parent directories
IEEE 754 half-precision floating-point for JavaScript
Find the root directory of a Node.js project or npm package
Some useful utilities I often need
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
Frequently installed together
The semantic version parser used by npm.
An AST-based pattern checker for JavaScript.
Runtime typescript and ESM support for Node.js
A simple cache for a few of the JS Error constructors.
Is this specifier a node.js core module?
Determine if the current node version supports the `--preserve-symlinks` flag.
Version history
| Version | Published | License |
|---|---|---|
| 1.0.7latest | 5 years ago | MIT |
| 1.0.6 | 8 years ago | MIT |
| 1.0.5 | 11 years ago | MIT |
| 1.0.4 | 11 years ago | MIT |
| 1.0.3 | 11 years ago | MIT |
| 1.0.2 | 11 years ago | MIT |
| 1.0.1 | 11 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
Maintainers
Frequently asked questions
How do I install path-parse?
Run `npm install path-parse` to add path-parse to your npm project.
What license is path-parse released under?
path-parse is distributed under the MIT license.
How popular is path-parse?
path-parse has approximately 0 downloads per week and 1 known dependent packages.