hasurl

Determine whether the native WHATWG URL implementation is available.

MIT 2 个版本
安装
npm install hasurl
yarn add hasurl
pnpm add hasurl
bun add hasurl
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
}
版本列表
1.0.0-alpha 2017-03-10
1.0.0 2017-06-29