A word list free version of tiny-haikunator
import haikunate from 'micro-haikunator'
haikunate({nouns: ['snowflake'], adjectives: ['rough']) // rough-snowflake-256
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
To install test dependencies use npm i
, test with npm run test