path-parse (1.0.7)

Published 2026-02-24 14:02:31 +00:00 by atheaadmin

Installation

registry=
npm install path-parse@1.0.7
"path-parse": "1.0.7"

About this package

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

Keywords

path paths file dir parse built-in util utils core ponyfill polyfill shim
Details
npm
2026-02-24 14:02:31 +00:00
1
Javier Blanco
MIT
latest
2.0 KiB
Assets (1)
Versions (1) View all
1.0.7 2026-02-24