Skip to content
Node.js path.parse() ponyfill
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml Version 1.0.0 Apr 17, 2015
LICENSE
README.md
index.js Fix export win32.parse implementation on win32 platforms Apr 21, 2015
package.json 1.0.6 Aug 6, 2018
test.js Version 1.0.0 Apr 17, 2015

README.md

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

You can’t perform that action at this time.