1.0.2 • Published 7 years ago
is-path v1.0.2
is-path
Check if string is relative or absolute path and not URL.
const isPath = require('is-path')
isPath('C:\\xxx') //true
isPath('./something') //true
isPath('../something') //true
isPath('https://github.com/xyz') //false
If you find edge case, please address issues.