chensenlai 10988628a0 语音房项目初始化 | лет назад: 5 | |
---|---|---|
.. | ||
index.js | лет назад: 5 | |
license | лет назад: 5 | |
package.json | лет назад: 5 | |
readme.md | лет назад: 5 |
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