Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 576 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 576 Bytes

@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"