![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 871 | 595aea1 more query options + view options [كارل مبارك] |
![]() | index.js | a year ago | 1.8K | |
![]() | package.json | a year ago | 667 | afd0ccc remove unused [كارل مبارك] |
Node.js
path.parse(pathString)
ponyfill.
$ npm install --save path-parse
var pathParse = require('path-parse');
pathParse('/home/user/dir/file.txt');
//=> {
// root : "/",
// dir : "/home/user/dir",
// base : "file.txt",
// ext : ".txt",
// name : "file"
// }
See path.parse(pathString)
docs.
The Posix specific version.
The Windows specific version.
MIT © Javier Blanco