chensenlai 10988628a0 语音房项目初始化 | 5 éve | |
---|---|---|
.. | ||
index.js | 5 éve | |
license | 5 éve | |
package.json | 5 éve | |
readme.md | 5 éve |
Node.js 0.12
path.isAbsolute()
ponyfillPonyfill: 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