@scaleway/random-name
TypeScript icon, indicating that this package has built-in type declarations

5.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @scaleway/random-name

Weekly Downloads

5,144

Version

5.1.1

License

MIT

Unpacked Size

110 kB

Total Files

11

Last publish

Collaborators

  • scaleway-serverless-team
  • codelax
  • quantumsheep
  • scaleway-bot
  • mprost
  • imanu
  • vincentaudebert
  • maliszewskid
  • phiphi