New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iecap

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iecap

JavaScript library to detect the version of Internet Explorer and display a warning screen

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

IE cap

JavaScript library to detect the version of Internet Explorer and display a warning screen.

Demo

Example is located here.

Usage

Install via bower:

$ bower install iecap --save

or via npm:

$ npm install iecap --save

or download the iecap.min.js file into your repo.

Then, include script file and initialize the library:

iecap.getVersion();

Methods

You can use the following methods:

  • getVersion — Return the current version of IE browser;
  • displayVersion(availability) — Display the IE version on body container and return the IE version;
  • showScreen(language, availability) — Show warning screen if the IE version is outdated.

Options

The some methods use the following params:

  • language — The language for the template (en, ru). Defaults to en;
  • availability — The IE version from which the warning screen is displayed. Defaults to 9;

Release History

  • 1.2.0 — Added npm support.
  • 1.1.1 — Fixed bugs.
  • 1.1.0 — Added demo and defaults styles.
  • 1.0.1 — Fixed bugs.
  • 1.0.0 — Added bower support.

License

MIT © Ilya Fedotov

Keywords

ie

FAQs

Package last updated on 10 Apr 2016

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