Repository URL to install this package:
|
Version:
1.9.1-1486596246 ▾
|
code
/
usr
/
share
/
code
/
resources
/
app
/
extensions
/
ms-vscode.node-debug2
/
node_modules
/
path-is-absolute
|
|---|
| .. |
| index.js |
| package.json |
| license |
| readme.md |
Node.js 0.12
path.isAbsolute()ponyfill
Ponyfill: A polyfill that doesn't overwrite the native method
$ npm install --save path-is-absolute
var pathIsAbsolute = require('path-is-absolute'); // Linux pathIsAbsolute('/home/foo'); //=> true // Windows pathIsAbsolute('C:/Users/'); //=> true // Any OS pathIsAbsolute.posix('/home/foo'); //=> true
See the path.isAbsolute() docs.
The Posix specific version.
The Windows specific version.
MIT © Sindre Sorhus