Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

ie-version

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

ie-version

Checks the Internet Explorer's version

    0.1.0latest
    Github

Version published
Maintainers
1
Weekly downloads
722
decreased by-3.35%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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