【文件属性】:
文件名称:path-is-absolute:Node.js 0.12 path.isAbsolute()ponyfill
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 03:31:59
deprecated JavaScript
不推荐使用
该软件包不再相关,因为未维护Node.js 0.12。
绝对路径
Node.js 0.12
安装
$ npm install --save path-is-absolute
用法
const pathIsAbsolute = require ( 'path-is-absolute' ) ;
// Running on Linux
pathIsAbsolute ( '/home/foo' ) ;
//=> true
pathIsAbsolute ( 'C:/Users/foo' ) ;
//=> false
// Running on Windows
pathIsAbsolute ( 'C:/Users/foo' ) ;
//=> true
pathIsAbsolute ( '/home/foo' ) ;
//=> false
// Running on any OS
【文件预览】:
path-is-absolute-main
----.gitattributes(29B)
----.github()
--------funding.yml(31B)
--------security.md(179B)
----test.js(1009B)
----license(1KB)
----.travis.yml(65B)
----.editorconfig(190B)
----.gitignore(13B)
----index.js(606B)
----readme.md(2KB)
----package.json(733B)