Skip to content

DavideViolante/useragents-me-api

Repository files navigation

Useragents.me Node.js APIs wrapper

Coverage Status Maintainability npm Donate

NPM

Simple Node.js wrapper for useragents.me APIs.

Install

npm i useragents-me-api

Example

const { useragentsme } = require('useragents-me-api');

async function main() {
  try {
    const res = await useragentsme();
    console.log(res); // [{"ua": "Mozilla/5.0...", "pct": 36.123...}, ...]
  } catch (error) {
    console.log(error);
  }
}

Run tests

npm test

Run lint

npm run lint

Author