web-api-checker
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Web API Checker

codeql release license npm

Just check the web api is available or not before using it, inspired by toniengelhardt.

npm install web-api-checker

Usage

import { isWebAPISupport } from 'web-api-checker';

// check all api support in https://api-checker.lmmmmmm.dev
console.log(isWebAPISupport('WebGPU')); // false
console.log(isWebAPISupport('WebSocket')); // true
// check multiple web api
console.log(isWebAPISupport(['WebGPU', 'WebSocket'])); // false

Package Sidebar

Install

npm i web-api-checker

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

16.7 kB

Total Files

7

Last publish

Collaborators

  • _lmmmmmm