Skip to content

nbriz/Averigua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Averigua

A vanilla JS class that checks for all the things I'm always checking for. Essentially this is my "detection collectoin"

JavaScript Style Guide

install

$ npm install git+https://github.com/nbriz/Averigua.git

on the web

<script src="node_modules/Averigua/Averigua.js"></script>

or in node

const Averigua = require('Averigua')

methods

Averigua.isNode()         // Boolean
Averigua.isBrowser()      // Boolean
Averigua.isMobile()       // Boolean

Averigua.hasWebGL()       // Boolean
Averigua.hasWebVR()       // Boolean
Averigua.hasMIDI()        // Boolean
Averigua.hasTouch()       // Boolean

Averigua.doNotTrack()     // Boolean

Averigua.language()       // returns object with language and country
Averigua.timeZone()       // String

Averigua.orientation()    // String (landscape, portrait or no-support)
Averigua.screen()         // returns object with screen info

Averigua.gpuInfo()        // returns object with GPU info
Averigua.browserInfo()    // returns object with browser info
Averigua.platformInfo()   // returns object with platform info

Averigua.audioSupport()   // returns object with audio support info
Averigua.videoSupport()   // returns object with video support info
Averigua.pluginSupport()  // returns array with plugin info objects
Averigua.storageSupport() // returns object with web storage support info
Averigua.fontSupport()    // returns array of supported fonts

About

A vanilla JS class that checks for all the things i'm always checking for.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors