Nostalgic Punchcard Missing

    tiny-detector

    0.0.41 • Public • Published

    simple and tiny browser detector

    import Detector from "tiny-dector";
     
    const d = new Detector();
     
    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"
    }

    Install

    npm i tiny-detector

    DownloadsWeekly Downloads

    1

    Version

    0.0.41

    License

    MIT

    Unpacked Size

    237 kB

    Total Files

    9

    Last publish

    Collaborators

    • vicvinc