chensenlai 10988628a0 语音房项目初始化 | 5 vuotta sitten | |
---|---|---|
.. | ||
index.js | 5 vuotta sitten | |
license | 5 vuotta sitten | |
package.json | 5 vuotta sitten | |
readme.md | 5 vuotta sitten |
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