micro-haikunator
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

Node.js Package

Micro Haikunator

A word list free version of tiny-haikunator

Usage

import haikunate from 'micro-haikunator'

haikunate({nouns: ['snowflake'], adjectives: ['rough']) // rough-snowflake-256

Advanced Usage

All objects and functions are available for you to extend however you need, configuration is passed into the haikunate function. The configuration values are shown individually below.

import haikunate, {randomNumber, toChars} from 'micro-haikunator'

haikunate({nouns: ['car'], adjectives: ['spicy'], maxValue: 100}) // spicy-car-37
haikunate({nouns: ['mountain'], adjectives: ['blue'], useChars: true) // blue-mountain-a87

randomNumber(1) // 0
toChars(37) // bb
toChars(37, 'na') // ananna

Development

To install test dependencies use npm i, test with npm run test

Keywords

none

Install

DownloadsWeekly Downloads

7

Version

1.0.7

License

MIT

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • inapinch