@feizheng/next-random-ua
v1.0.0
Published
Get a random user agent.
Downloads
6
Readme
next-random-ua
Get a random user agent.
installation
npm install -S @feizheng/next-random-ua
usage
import '@feizheng/next-random-ua';
nx.randomUa();
nx.randomUa(3);
// Mozilla/5.0 (Linux; Android 6.0; Nexus 5X Build/MDB08L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36
/**
[
'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/9.0.601.0 Safari/534.14',
'Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13C75 Safari/601.1',
'Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 530) like Gecko'
]
* /
resources
- https://github.com/skratchdot/random-useragent