1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/node_modules/path-parse
2019-09-18 20:39:54 +09:00
..
.travis.yml * first action! (#1) 2019-09-18 20:39:54 +09:00
index.js * first action! (#1) 2019-09-18 20:39:54 +09:00
LICENSE * first action! (#1) 2019-09-18 20:39:54 +09:00
package.json * first action! (#1) 2019-09-18 20:39:54 +09:00
README.md * first action! (#1) 2019-09-18 20:39:54 +09:00
test.js * first action! (#1) 2019-09-18 20:39:54 +09: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