New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

web-browser-detection

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-browser-detection

detect web browser informations

latest
Source
npmnpm
Version
0.9.1
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

web-browser-detection

build version package dependencies minified linter tests license hits Gitter

The lastest version of this document is available on Github > web-browser-detection

introduction

detect web browser informations

based on jquery.browser under MIT License

but remove jQuery dependency

Installation

npm install web-browser-detection --save

or

yarn add web-browser-detection --save

prerequisites for browser

<script src="node_modules/web-browser-detection/distrib/web-browser-detection.min.js"></script>

usage

<script>
   var browser = webBrowserDetection();
   // => {"rv":true,"version":"11.0","versionNumber":11,"win":true,"desktop":true,"msie":true,"name":"msie","platform":"win"} 
</script>
BrowserPlatformVersionsResult
ChromeWindows 7all*{
chrome: true,
version: "66.0.3359.139",
versionNumber: 66,
win: true,
desktop: true,
webkit: true
, name:"chrome",
platform:"win"
}
FirefoxWindows 7all*{
mozilla: true,
version: "60.0",
versionNumber: 60,
win: true,
desktop: true,
name: "mozilla",
platform: "win"
}
Internet ExplorerWindows 7all*{
desktop: true,
msie: true,
name: "msie",
platform: "win",
rv: true,
version: "11.0",
versionNumber: 11,
win: true
}

more

* Need some help for all versions

Note Important dependencies and minified

Keywords

webbrowser

FAQs

Package last updated on 12 May 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