Unofficial ROBLOX.JS API Wrapper.
Using npm:
$ npm i @rasi2661/roblox.js
Using yarn:
$ yarn add @rasi2661/roblox.js
Fetching a user's username:
const rbx = require("@rasi2661/roblox.js");
async function getusername(){
let user = new rbx.User(1); //pass userid
let username = await user.username();
console.log(username);
// ROBLOX
}
getusername()