Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

path-parse

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

path-parse

Node.js path.parse() ponyfill

    1.0.7latest

Version published
Maintainers
1
Weekly downloads
30,491,244
decreased by-4.11%

Weekly downloads

Readme

Source

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

FAQs

What is path-parse?

Node.js path.parse() ponyfill

Is path-parse popular?

The npm package path-parse receives a total of 28,666,796 weekly downloads. As such, path-parse popularity was classified as popular.

Is path-parse well maintained?

We found that path-parse demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 25 May 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc