HaikunatorJS
Generate Heroku-like random names to use in your node applications.
Installation
npm install haikunator
Usage
Haikunator is pretty simple.
var haikunate = require("haikunator");
haikunate()
haikunate({tokenLength: 6})
haikunate({tokenHex: true})
haikunate({tokenChars: "HAIKUNATE"})
haikunate({tokenLength: 0})
haikunate({delimiter: "."})
haikunate({tokenLength: 0, delimiter: " "})
haikunate({tokenLength: 0, delimiter: ""})
Options
The following options are available:
haikunate({
delimiter: "-",
tokenLength: 4,
tokenHex: false,
tokenChars: "0123456789",
seed: null
});
If tokenHex
is true, it overrides any tokens specified in tokenChars
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
Other Languages
Haikunator is also available in other languages. Check them out: