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

browser-detection.js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-detection.js

JavaScript Detection for Mobile Device, Internet Explorer and Window Size

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

BrowserDetection.js

Test

Branches Functions Lines Statements

Usage

Install it by Yarn or NPM

$ yarn add browser-detection.js

$ npm install browser-detection.js

Sample for ES 6 usage:

import BrowserDetection from 'browser-detection.js/src/BrowserDetection';
const detection = new BrowserDetection(
    window,
    navigator.userAgent || navigator.vendor || window.opera || '',
    navigator.appName || ''
);

When ES 5 or what ever, then use one of them:

browser-detection.js/src/BrowserDetection.js
browser-detection.js/src/BrowserDetection.min.js

Description

This Plug-In checks the following browser features:

  • Check if an Browser the Internet Explorer and which version from it.

  • Check if mobile or desktop Device is.

    • Android
    • Apple
    • BlackBerry
    • iOS
    • Linux
    • Opera
    • Windows
  • Check for the Browser Type if it an IE, Chrome, Firefox, Opera and Safari.

    • Chrome
    • Firefox
    • Opera
    • Safari
  • Check the Browser language.

Get Started

Contributions are welcome to join the project.

When you're not a developer, then create an issue for your wish feature instead.

GruntJS

Install GruntJS command line interface at the first time when you never used it before.

$ npm install -g grunt-cli

Install all NodeJS Modules from Project

$ yarn install

Run tests:

$ npm run test
Create release

Create a Release

$ grunt

Look if NodeJS could be updated

$ grunt devUpdate:show

Update NodeJS Modules

$ grunt devUpdate:install

FAQs

Package last updated on 13 Dec 2020

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