package
Determine whether the native WHATWG URL implementation is available.
npm install hasurlGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Determine whether Node.js' native WHATWG
URLimplementation is available.
Node.js >= 4 is required. To install, type this at the command line:
npm install hasurlconst hasURL = require('hasurl');
if (hasURL()) {
// supported
} else {
// fallback
}