Ascer is a npm module to easily access the https://randomuser.me API and help you make your code less cluttery (but tbh it is infact not very useful)
npm install ascer
const {getRandomUser} = require('ascer');
( async () => {
// Gets a random user and displays their first and last name
const user = await getRandomUser();
console.log(user.name.first + ' ' + user.name.last)
// Gets a random male user and displays their first and last name
// Gender options are 'male' and 'female'
const maleUser = await getRandomUser({gender: 'male'});
console.log(maleUser.name.first + ' ' + maleUser.name.last)
})();
gender
: 'male' | 'female'
This is a very useless module I only created for myself but feel free to use it if you need!