Skip to main content
Deno 2 is finally here 🎉️
Learn more

rua

Random user-agent generator module for Deno.

Usage

import rua from 'https://deno.land/x/rua/mod.js' // import the rua module

console.log(rua()) // will return a random user-agent
console.log(rua('desktop')) // will return a random destop user-agent
console.log(rua('mobile')) // will return a random mobile user-agent
console.log(rua('crawler')) // will return a random crawler user-agent