1 # path-parse [![Build Status](https://travis-ci.org/jbgutierrez/path-parse.svg?branch=master)](https://travis-ci.org/jbgutierrez/path-parse)
3 > Node.js [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) [ponyfill](https://ponyfill.com).
8 $ npm install --save path-parse
14 var pathParse = require('path-parse');
16 pathParse('/home/user/dir/file.txt');
19 // dir : "/home/user/dir",
28 See [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) docs.
32 ### pathParse.posix(path)
34 The Posix specific version.
36 ### pathParse.win32(path)
38 The Windows specific version.
42 MIT © [Javier Blanco](http://jbgutierrez.info)