Simple Node.js wrapper for useragents.me APIs.
npm i useragents-me-api
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);
}
}
npm test
npm run lint