Snow 1d0b9c5323 增加了node环境 | vor 1 Monat | |
---|---|---|
.. | ||
LICENSE | vor 1 Monat | |
README.md | vor 1 Monat | |
index.js | vor 1 Monat | |
package.json | vor 1 Monat |
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