Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-msie

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-msie

Detection of Internet Explorer 7-11 and Edge (>= 12), based on either Feature or User-Agent. ## Install ``` npm install --save detect-msie ``` ## Usage Default detection is based on Feature, as it is a more reliable method. To use a User-Agent based

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Detect-Ie

Detection of Internet Explorer 7-11 and Edge (>= 12), based on either Feature or User-Agent.

Install

npm install --save detect-msie

Usage

Default detection is based on Feature, as it is a more reliable method. To use a User-Agent based detection instead, see options below.

import { detectIe } from 'detect-msie'

const report = detectIe()

// Available Queries:
console.log(report.isDetected)
console.log(report.isEdge)
console.log(report.isBelowEdge)
console.log(report.isIe7OrLower)
console.log(report.isIe7)
console.log(report.isIe8)
console.log(report.isIe9)
console.log(report.isIe10)
console.log(report.isIe11)
console.log(report.version)

Options

useUserAgent
  • Type: Boolean
  • Default: false
  • Description: Use User-Agent based detection instead (less reliable, spoofable).

FAQs

Package last updated on 19 Feb 2018

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc