Installation yarn install username-creator Use import { GenerateRandomUsername } from 'username-creator' console.log(GenerateRandomUsername())