0.0.32 • Published 5 years ago

tiny-dector v0.0.32

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

simple and tiny browser detector

import Dector from "tiny-dector";

const d = new Dector();

console.log(d);

the dector instance contains the below attributes.

PC:

{
  "browser": "Chrome",
  "device": "PC",
  "engine": "Blink",
  "os": "Mac OS",
  "osVersion": "10.14.2",
  "version": "71.0.3578.98"
}

Mobile:

{
  "browser": "Safari",
  "device": "Mobile",
  "engine": "WebKit",
  "os": "iOS",
  "osVersion": "Mozilla/5.0 (iPhone; CPU iPhone OS 11.0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1",
  "version": "11.0"
}

ps: dector is short for detector.. its confused but, next time will be change

0.0.32

5 years ago

0.0.31

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

1.0.0

5 years ago