JSPM

hasurl

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 134875
  • Score
    100M100P100Q155671F
  • License MIT

Determine whether the native WHATWG URL implementation is available.

Package Exports

  • hasurl

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 (hasurl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hasurl NPM Version Build Status

Determine whether Node.js' native WHATWG URL implementation is available.

Installation

Node.js >= 4 is required. To install, type this at the command line:

npm install hasurl

Usage

const hasURL = require('hasurl');

if (hasURL()) {
    // supported
} else {
    // fallback
}