1 # path-is-absolute [![Build Status](https://travis-ci.org/sindresorhus/path-is-absolute.svg?branch=master)](https://travis-ci.org/sindresorhus/path-is-absolute)
3 > Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) ponyfill
5 > Ponyfill: A polyfill that doesn't overwrite the native method
11 $ npm install --save path-is-absolute
18 var pathIsAbsolute = require('path-is-absolute');
21 pathIsAbsolute('/home/foo');
25 pathIsAbsolute('C:/Users/');
29 pathIsAbsolute.posix('/home/foo');
36 See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).
38 ### pathIsAbsolute(path)
40 ### pathIsAbsolute.posix(path)
42 The Posix specific version.
44 ### pathIsAbsolute.win32(path)
46 The Windows specific version.
51 MIT © [Sindre Sorhus](http://sindresorhus.com)