hasurl

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

MIT License

Downloads
386.4K
Stars
2
Committers
1

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
}