chensenlai 10988628a0 语音房项目初始化 | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=5) %!d(string=hai) anos | |
license | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
readme.md | %!s(int64=5) %!d(string=hai) anos |
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