path-is

2019-09-13 admin

path-is是什么

什么是path-is,check what type of path a string is

path-is使用教程帮助文档

Path Is

Check what type of path a string is according to CSS @import semantics, which is most likely how all web resources will be handled.

var is = require('path-is')

// remote URIs
is.url('//google.com') // => true
is.absolute('/something/long') // => true
is.relative('something') // true
is.relative('./something') // true

// local URIs
is.absolute('/User/jong') // => true
is.relative('C:\\something') // => false

你可能感兴趣的文章:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75007.html

文章标题:path-is

回到顶部