path-is

1.1.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i path-is

      Weekly Downloads

      2

      Version

      1.1.1

      License

      MIT

      Last publish

      Collaborators

      • swatinem
      • jongleberry