path-parse
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/path-parse package

1.0.7 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    51,171,259
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.7
    51,171,259
  • 1.0.6
    6,113,823
  • 1.0.5
    429,631
  • 1.0.4
    12
  • 1.0.3
    13
  • 1.0.2
    13
  • 1.0.1
    13
  • 1.0.0
    13

Package Sidebar

Install

npm i path-parse

Weekly Downloads

42,078,536

Version

1.0.7

License

MIT

Unpacked Size

4.51 kB

Total Files

4

Last publish

Collaborators

  • jbgutierrez