Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aapis/detect.js

Detect the browser, OS and installed plugins, then display them with nice formatting
https://github.com/aapis/detect.js

Last synced: 23 days ago
JSON representation

Detect the browser, OS and installed plugins, then display them with nice formatting

Awesome Lists containing this project

README

        

# Detect.js

Like the title says. Fairly accurate browser detection, though I only had a chance to test it on Windows (Chrome/Firefox) and Linux (Chrome/Firefox).

## Examples

```
var info = new Detect({format: false});

To view the full object, console.log(info)

output:
{
browser: {
short_version: browserShortVersion,
name : "browserName",
engine : "browserEngine",
version : "browserVersion",
},

os: {
architecture: systemBits,
system: "systemName",
},

plugins: {
[INSTALLED_PLUGINS_LIST]
},

supports: {
[BROWSER_SUPPORTS_FEATURE_LIST]
},
}
```

## Options


Key
Value
Type
Default


add_classes
Add detected browser and system information to the class list of the HTML node.
bool
true


ignore
(plugins|os|browser|supports) - Remove the respective element from the output.
object
N/A