Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/aapis/detect.js
- Owner: aapis
- Created: 2013-04-17T03:51:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T21:57:55.000Z (about 10 years ago)
- Last Synced: 2024-10-15T10:29:56.236Z (2 months ago)
- Language: JavaScript
- Size: 461 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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