odin-default-js-exercises/node_modules/path-parse
Cody Loyd 834d78b8b2 remove timer and simon 2017-12-15 12:56:14 -06:00
..
.travis.yml remove timer and simon 2017-12-15 12:56:14 -06:00
README.md 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
index.min.js remove timer and simon 2017-12-15 12:56:14 -06:00
package.json remove timer and simon 2017-12-15 12:56:14 -06:00
test.js remove timer and simon 2017-12-15 12:56:14 -06:00
test.min.js remove timer and simon 2017-12-15 12:56:14 -06:00

README.md

path-parse Build Status

Node.js path.parse(pathString) ponyfill.

Ponyfill: A polyfill that doesn't overwrite the native method

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