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.
5 > Ponyfill: A polyfill that doesn't overwrite the native method
10 $ npm install --save path-parse
16 var pathParse = require('path-parse');
18 pathParse('/home/user/dir/file.txt');
21 // dir : "/home/user/dir",
30 See [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) docs.
34 ### pathParse.posix(path)
36 The Posix specific version.
38 ### pathParse.win32(path)
40 The Windows specific version.
44 MIT © [Javier Blanco](http://jbgutierrez.info)