Buckets:
1.39 GB
20,046 files
Updated 15 days ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| LICENSE | 1.08 kB xet | f53d310f | |
| README.md | 871 Bytes xet | 45bb60e1 | |
| index.js | 1.89 kB xet | f04b1fd4 | |
| package.json | 667 Bytes xet | fc070695 |
path-parse
Node.js
path.parse(pathString)ponyfill.
Install
$ npm install --save path-parse
Usage
var pathParse = require('path-parse');
pathParse('/home/user/dir/file.txt');
//=> {
// root : "/",
// dir : "/home/user/dir",
// base : "file.txt",
// ext : ".txt",
// name : "file"
// }
API
See path.parse(pathString) docs.
pathParse(path)
pathParse.posix(path)
The Posix specific version.
pathParse.win32(path)
The Windows specific version.
License
MIT © Javier Blanco
- Total size
- 1.39 GB
- Files
- 20,046
- Last updated
- May 9
- Pre-warmed CDN
- US EU US EU