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

fake-useragent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fake-useragent

generate a fake userAgent for bypass guys

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
118K
decreased by-9.63%
Maintainers
1
Weekly downloads
 
Created

What is fake-useragent?

The fake-useragent npm package is used to generate random user-agent strings, which can be useful for web scraping, testing, and other scenarios where you need to simulate different browsers or devices.

What are fake-useragent's main functionalities?

Generate a random user-agent

This feature allows you to generate a random user-agent string. This can be useful for web scraping to avoid detection by rotating user-agents.

const fakeUa = require('fake-useragent');
const randomUserAgent = fakeUa();
console.log(randomUserAgent);

Generate a user-agent for a specific browser

This feature allows you to generate a user-agent string for a specific browser, such as Chrome. This can be useful when you need to simulate requests from a particular browser.

const fakeUa = require('fake-useragent');
const chromeUserAgent = fakeUa('chrome');
console.log(chromeUserAgent);

Generate a user-agent for a specific operating system

This feature allows you to generate a user-agent string for a specific operating system, such as Windows. This can be useful when you need to simulate requests from a particular OS.

const fakeUa = require('fake-useragent');
const windowsUserAgent = fakeUa('windows');
console.log(windowsUserAgent);

Other packages similar to fake-useragent

Keywords

FAQs

Package last updated on 22 Jun 2017

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