import { AvatarGenerator } from 'random-avatar-generator'; const generator = new AvatarGenerator(); // Simply get a random avatar generator.generateRandomAvatar();