Socket
Book a DemoInstallSign in
Socket

jizy-browser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jizy-browser

A simple JS browser compatibility library.

2.1.3
latest
Source
npmnpm
Version published
Weekly downloads
15
-93.36%
Maintainers
1
Weekly downloads
 
Created
Source

jizy-browser

A simple browser compatibility library to check for feature support.

Browser Compatibility Layer

This package provides a browser compatibility layer for web projects, including JavaScript logic and stylesheets to detect and block unsupported browsers.

Structure

  • lib/index.js: Main entry point. Exports the BrowserCompat class.
  • lib/js/browsercompat.js: Contains the BrowserCompat class for browser compatibility checking.
  • lib/less/: LESS stylesheets for the compatibility UI overlay.
    • structure.less, screen.less: Layout and appearance.
    • variables.less: Color variables.

Features

  • Register custom compatibility checkers.
  • Block Internet Explorer and other unsupported browsers.
  • Customizable callback for incompatible browsers.
  • Optional integration with caniuse.com regexes.
  • Prebuilt styles for displaying compatibility warnings.

Usage Example

import BrowserCompat from 'jizy-browser';

const checker = new BrowserCompat();
checker.onBadBrowser((browser) => {
  // Custom action when browser is not supported
});
checker.noIE(); // Block Internet Explorer

Purpose

  • Detect and block unsupported browsers.
  • Provide customizable UI and error handling for users on unsupported browsers.
  • Include stylesheets for a modern compatibility warning overlay.

Keywords

browser

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.