1.0.0 • Published 5 years ago

common-useragents v1.0.0

Weekly downloads
3
License
AGPL-3.0
Repository
github
Last release
5 years ago

common-useragents

Get a list of common useragents

Usage

Promise-based API. Only a single function.

  import getUseragents from 'common-useragents';

  getUseragents()
  .then(console.log);
  // [
  // { percent: '14.2%',
  //  useragent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
  //  system: 'Chrome 71.0 Win10' }...

Every time you call this function a new request is made, so be sure to cache the results to avoid making too many requests.

About

License

Copyright © 2019, nukeop. Released under the Affero GPL 3.0 License.