JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7511061
  • Score
    100M100P100Q226609F

Return true if a file path is absolute.

Package Exports

  • is-absolute

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-absolute) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-absolute NPM version

Return true if a file path is absolute.

Based on the isAbsolute utility method in express.

Install

Install with npm:

npm i is-absolute --save-dev

Usage

var isAbsolute = require('is-absolute');
console.log(isAbsolute('abc'));
//=> ['a', 'b', 'c'];

API

Example:

isAbsolute('a/b/c.js');
//=> 'false'

isAbsolute('C://a/b/c.js');
//=> 'true'
  • filepath {String}
  • return {Boolean}

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on July 06, 2014.