🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

ie-version

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

ie-version

Checks the Internet Explorer's version

0.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

ie-version

Checks the Internet Explorer's version

The module uses feature detection and detects from IE6 up to IE11. Furthermore, it also checks if Internet Explorer is being emulated by changing the document mode.

Only AMD and CommonJS module loaders are supported. This means that the module cannot be registered into the window object. Feel free to adapt it to your needs.

The module returns an object with the following properties:

  • ie : Number | null
    The Internet Explorer's version. Versions lower than 6 return 6. If the browser is not Internet Explorer, returns null.
  • emulated : Boolean
    If Internet Explorer is being emulated by changing the document mode, returns true, otherwise false.
require (["path/to/ie-version"], function (ie){
  alert ("version: " + ie.version + ", emulated: " + ie.emulated);
});

Keywords

ie

FAQs

Package last updated on 19 Oct 2014

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