Skip to content

Get the user agent of a recent Chrome version to pretend to be a browser in network requests

License

Notifications You must be signed in to change notification settings

sindresorhus/ua-string

Repository files navigation

ua-string

Get the user agent of a recent Chrome version to pretend to be a browser in network requests

Some sites and services block non-browser requests or respond differently.

I will update this module once in a while with the latest user agent.

Install

$ npm install ua-string

Usage

import got from 'got';
import userAgentString from 'ua-string';

await got('https://sindresorhus.com', {
	headers: {
		'user-agent': userAgentString
	}
});

About

Get the user agent of a recent Chrome version to pretend to be a browser in network requests

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •