odin-javascript-exercises/node_modules/path-parse
2021-05-09 00:39:21 +12:00
..
.travis.yml remove timer and simon 2017-12-15 12:56:14 -06:00
index.js remove timer and simon 2017-12-15 12:56:14 -06:00
package.json Clean up the oopsie. Rebuild the blank exercises. 2021-05-09 00:39:21 +12:00
README.md Clean up the oopsie. Rebuild the blank exercises. 2021-05-09 00:39:21 +12:00
test.js remove timer and simon 2017-12-15 12:56:14 -06:00

path-parse Build Status

Node.js path.parse(pathString) ponyfill.

Install

$ npm install --save path-parse

Usage

var pathParse = require('path-parse');

pathParse('/home/user/dir/file.txt');
//=> {
//       root : "/",
//       dir : "/home/user/dir",
//       base : "file.txt",
//       ext : ".txt",
//       name : "file"
//   }

API

See path.parse(pathString) docs.

pathParse(path)

pathParse.posix(path)

The Posix specific version.

pathParse.win32(path)

The Windows specific version.

License

MIT © Javier Blanco