@scaleway/random-name
v5.1.1
Published
A small utility to generate a random name
Downloads
28,615
Maintainers
Keywords
Readme
@scaleway/random-name
A tiny utility to generate random names.
Fully inspired by Moby name generator
Install
$ pnpm add @scaleway/random-name
Usage
import randomName from '@scaleway/random-name'
// randomName(prefix: string = '', separator: string = '-'): string
randomName() // => "admiring-allen"
randomName('superb') // => "superb-admiring-allen"
randomName('superb', '_') // => "superb_admiring_allen"
randomName('', '_') // => "admiring_allen"