Vika a1fdb9607d hw react2 | 2 lat temu | |
---|---|---|
.. | ||
LICENSE | 2 lat temu | |
README.md | 2 lat temu | |
index.js | 2 lat temu | |
package.json | 2 lat temu |
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