Get a random and legit user-agent for your HTTP client
MIT License
Stores and randomly accesses a HTTP user agent from an available list of user agents in disk.
npm install random-http-useragent -g
random-http-useragent
Get a random user agent
const RandomHttpUserAgent = require('random-http-useragent')
RandomHttpUserAgent.get()
.then((userAgent) => console.log(userAgent))
.catch((error) => console.error(error.message))
Cache returned user agents for 2 minutes
const RandomHttpUserAgent = require('random-http-useragent')
RandomHttpUserAgent.configure({ memoizee: { maxAge: 120000 } })
RandomHttpUserAgent.get()
.then((userAgent) => console.log(userAgent))
.catch((error) => console.error(error.message))
You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.
All donation proceedings will go to the Sverige fΓΆr UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.
Read the license for permissions and limitations.