Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

useragent-from-seed

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

useragent-from-seed

Pick a random user agent with a seed

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
920
20.1%
Maintainers
1
Weekly downloads
 
Created
Source

useragent-from-seed

Pick a random User Agent with seed support.

Results are not truly random. They are based on a list containing Windows, macOS, Android and iOS agents.

Usage

const useragentFromSeed = require('useragent-from-seed')

// Usage with seed
useragentFromSeed('MY SEED') // Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 ...
useragentFromSeed('MY SEED') // Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 ...

// Usage without seed
useragentFromSeed() // Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 ...
useragentFromSeed() // Mozilla/5.0 (Linux; U; Android 2.1; en-us; Nexus One Build/ERD62) ...

Credits

All User Agents are taken from User Agent Switcher

FAQs

Package last updated on 15 Mar 2018

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