detectos.js
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/detectos.js package

1.5.2 • Public • Published

DetectOS.js

Simple definition of popular operating systems and browsers in JavaScript without dependencies.

Install

NPM:

npm i detectos.js

Yarn:

yarn add detectos.js

Bower:

bower i detectos.js

Usage

import DetectOS from 'detectos.js'
const Detect = new DetectOS()

console.log("We know your browser – it's " + Detect.browser + " " + Detect.version);
console.log("We know your OS – it's " + Detect.OS);
console.log("We know everything about you.");

Demo

Used on MobiDevices

Package Sidebar

Install

npm i detectos.js

Weekly Downloads

17

Version

1.5.2

License

WTFPL

Unpacked Size

7.91 kB

Total Files

5

Last publish

Collaborators

  • vadizar