Tennessee Gibbs 0304752480 added pages to master | 6 jaren geleden | |
---|---|---|
.. | ||
.travis.yml | 6 jaren geleden | |
README.md | 6 jaren geleden | |
index.js | 6 jaren geleden | |
index.min.js | 6 jaren geleden | |
package.json | 6 jaren geleden | |
test.js | 6 jaren geleden | |
test.min.js | 6 jaren geleden |
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