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 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

demo/src/components/Demo.vue

6

demo/src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Demo from '@/components/Demo'

@@ -11,6 +11,6 @@ Vue.use(Router)

path: '/',
name: 'HelloWorld',
component: HelloWorld
name: 'Demo',
component: Demo
}
]
})
{
"name": "detect-msie",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist",

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

@@ -8,21 +8,21 @@ ```

## 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.
```js
import { detectIe } from 'detect-msie'
const detection = detectIe()
const report = detectIe()
// Available Queries:
console.log(detection.isDetected)
console.log(detection.isEdge)
console.log(detection.isBelowEdge)
console.log(detection.isIe7OrLower)
console.log(detection.isIe7)
console.log(detection.isIe8)
console.log(detection.isIe9)
console.log(detection.isIe10)
console.log(detection.isIe11)
console.log(detection.version)
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`

@@ -29,0 +29,0 @@ * Type: `Boolean`

Sorry, the diff of this file is not supported yet

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