🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

universal-user-agent

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
u

universal-user-agent

Get a user agent string across all JavaScript Runtime Environments

7.0.3
latest
100

Supply Chain Security

100

Vulnerability

67

Quality

84

Maintenance

100

License

Version published
Weekly downloads
12M
9.74%
Maintainers
1
Weekly downloads
 
Created
Issues
0

What is universal-user-agent?

The universal-user-agent npm package is designed to generate user-agent strings that can be used in various environments such as Node.js, browsers, and React Native applications. It abstracts away the differences between these environments, providing a unified way to obtain a user-agent string that represents the client making HTTP requests.

What are universal-user-agent's main functionalities?

Generate User-Agent String

This feature allows you to generate a user-agent string that is appropriate for the environment your code is running in. The generated string includes information about the platform, operating system, and browser or Node.js version, depending on the execution context.

"const userAgent = require('universal-user-agent');
console.log(userAgent());"

Other packages similar to universal-user-agent

FAQs

Package last updated on 12 May 2025

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