arvin.torres e3ca5d94a7 Campanas de Paz para la Mujer | 5 anni fa | |
---|---|---|
.. | ||
.travis.yml | 5 anni fa | |
LICENSE | 5 anni fa | |
README.md | 5 anni fa | |
index.js | 5 anni fa | |
package.json | 5 anni fa | |
test.js | 5 anni fa |
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