José Quiñones Flores 4564da0130 Added Laravel project and removed sensitive data | 4 years ago | |
---|---|---|
.. | ||
.travis.yml | 4 years ago | |
README.md | 4 years ago | |
index.js | 4 years ago | |
index.min.js | 4 years ago | |
package.json | 4 years ago | |
test.js | 4 years ago | |
test.min.js | 4 years ago |
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