New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

common-useragents

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-useragents

Get a list of common useragents

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

useragent

FAQs

Package last updated on 09 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts