path-is-absolute 
Node.js 0.12
path.isAbsolute()ponyfill
Install
$ npm install --save path-is-absolute
Usage
const pathIsAbsolute = require('path-is-absolute');// Running on LinuxpathIsAbsolute('/home/foo');//=> truepathIsAbsolute('C:/Users/foo');//=> false// Running on WindowspathIsAbsolute('C:/Users/foo');//=> truepathIsAbsolute('/home/foo');//=> false// Running on any OSpathIsAbsolute.posix('/home/foo');//=> truepathIsAbsolute.posix('C:/Users/foo');//=> falsepathIsAbsolute.win32('C:/Users/foo');//=> truepathIsAbsolute.win32('/home/foo');//=> false
API
See the path.isAbsolute() docs.
pathIsAbsolute(path)
pathIsAbsolute.posix(path)
POSIX specific version.
pathIsAbsolute.win32(path)
Windows specific version.
License
MIT © Sindre Sorhus
