$ npm install hasurl
Determine whether Node.js' native WHATWG
URLimplementation is available.
Node.js >= 4 is required. To install, type this at the command line:
npm install hasurl
const hasURL = require('hasurl');
if (hasURL()) {
// supported
} else {
// fallback
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE