https://github.com/nukeop/common-useragents
Get a list of common useragents
https://github.com/nukeop/common-useragents
Last synced: 9 months ago
JSON representation
Get a list of common useragents
- Host: GitHub
- URL: https://github.com/nukeop/common-useragents
- Owner: nukeop
- License: agpl-3.0
- Created: 2019-01-09T08:58:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T10:36:09.000Z (over 7 years ago)
- Last Synced: 2025-09-25T18:23:18.881Z (10 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# common-useragents
Get a list of common useragents
## Usage
Promise-based API. Only a single function.
```javascript
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](https://github.com/nukeop).
Released under the [Affero GPL 3.0 License](LICENSE).