|
||||
---|---|---|---|---|
.. | ||||
.travis.yml | 11e3a9652a | 7 ans auparavant | ||
README.md | 11e3a9652a | 7 ans auparavant | ||
index.js | 11e3a9652a | 7 ans auparavant | ||
index.min.js | 11e3a9652a | 7 ans auparavant | ||
package.json | 11e3a9652a | 7 ans auparavant | ||
test.js | 11e3a9652a | 7 ans auparavant | ||
test.min.js | 11e3a9652a | 7 ans auparavant |
Node.js
path.parse(pathString)
ponyfill.Ponyfill: A polyfill that doesn't overwrite the native method
$ 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