Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eternaljs/user-agent

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eternaljs/user-agent

A user agent request is a string of text that identifies the client software requesting online content.

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-83.08%
Maintainers
0
Weekly downloads
 
Created
Source

User Agent

A user agent request is a string of text that identifies the client software requesting online content. It's contained in the HTTP headers and is sent to the web server when connecting to a website.

Installing

Using npm:

$ npm install @eternaljs/user-agent

Using yarn:

$ yarn add @eternaljs/user-agent

Imports

These examples assume you're in node, or something similar:

// JavaScript
const { UserAgent } = require("@eternaljs/user-agent");

// TypeScript
import { UserAgent } from "@eternaljs/user-agent";

Usage Example

const { UserAgent } = userAgent(agent)
{
  "browser": { "name": "Chrome", "version": "119.0.0.0" },
  "device": { "type": "desktop","os": "Windows 10.0","platform": "Microsoft Windows"},
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
}

License

MIT

Keywords

FAQs

Package last updated on 15 Nov 2024

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