ajanuw-browser-platform
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

ajanuw-browser-platform

检测浏览器类型

example

const { Platform } = BrowserPlatform;
console.log(new Platform());

Platform

 class Platform {
    isBrowser: boolean;
    EDGE: boolean;
    TRIDENT: boolean;
    BLINK: boolean;
    WEBKIT: boolean;
    IOS: boolean;
    FIREFOX: boolean;
    ANDROID: boolean;
    SAFARI: boolean;
}

See alse:

Package Sidebar

Install

npm i ajanuw-browser-platform

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

15.8 kB

Total Files

17

Last publish

Collaborators

  • ajanuw