Socket
Socket
Sign inDemoInstall

ie-version

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ie-version

Checks the Internet Explorer's version


Version published
Weekly downloads
548
increased by40.51%
Maintainers
1
Install size
4.46 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 19 Oct 2014

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc