New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

whodis

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whodis - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "whodis",
"version": "1.0.1",
"version": "1.0.2",
"description": "A simple device and browser sniffer... mostly using navigator.userAgent (yikes)",

@@ -5,0 +5,0 @@ "main": "dist/WhoDis.js",

@@ -15,3 +15,2 @@ # WhoDis.js

## Install (from npm)

@@ -23,3 +22,2 @@ `npm i whodis`

## Or, import from your file/projects

@@ -35,2 +33,3 @@ `import WhoDis from ./WhoDis`

// Add class to html
const html = document.querySelector('html');

@@ -49,4 +48,13 @@

}
// bail if mobile
if (WhoDis.anyMobile) return;
```
## Log info on current `userAgent`
```
console.log(WhoDis.info)
```
## Current Checks

@@ -53,0 +61,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc