Socket
Socket
Sign inDemoInstall

@egjs/agent

Package Overview
Dependencies
Maintainers
9
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/agent

Extracts browser and operating system information from the user agent string or user agent object(userAgentData).


Version published
Weekly downloads
95K
decreased by-6.02%
Maintainers
9
Weekly downloads
 
Created

What is @egjs/agent?

@egjs/agent is a JavaScript library that provides detailed information about the user's environment, including the browser, operating system, and device. It helps developers tailor their applications based on the user's environment.

What are @egjs/agent's main functionalities?

Detect Browser Information

This feature allows you to detect the browser information of the user, such as the name and version of the browser.

const agent = new eg.Agent();
console.log(agent.browser);

Detect OS Information

This feature allows you to detect the operating system information of the user, including the name and version of the OS.

const agent = new eg.Agent();
console.log(agent.os);

Detect Device Information

This feature allows you to detect the device information of the user, such as whether the device is a mobile, tablet, or desktop.

const agent = new eg.Agent();
console.log(agent.device);

Other packages similar to @egjs/agent

FAQs

Package last updated on 12 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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