GT2/GT2-iOS/node_modules/path-parse
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
.travis.yml correct tree err 2018-02-12 17:26:06 +00:00
README.md correct tree err 2018-02-12 17:26:06 +00:00
index.js correct tree err 2018-02-12 17:26:06 +00:00
index.min.js correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
test.js correct tree err 2018-02-12 17:26:06 +00:00
test.min.js correct tree err 2018-02-12 17:26:06 +00: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