Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 613 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 613 Bytes

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