All Projects → Atrox → Haikunatorjs

Atrox / Haikunatorjs

Licence: bsd-3-clause
Generate Heroku-like random names to use in your node applications.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Haikunatorjs

Salien Script Js
👽 A easy to install, run and update Node.js script for the Steam salien mini-game.
Stars: ✭ 181 (-16.97%)
Mutual labels:  heroku
React Node Example
a minimalist starter repo for React and Node to deploy to heroku
Stars: ✭ 197 (-9.63%)
Mutual labels:  heroku
Heroku Config
[Utility] Push and pull heroku environment variables to your local env
Stars: ✭ 207 (-5.05%)
Mutual labels:  heroku
Ruby2 Rails4 Bootstrap Heroku
A starter application based on Ruby 2.4, Rails 4.2 and Bootstrap for Sass 3, deployable on Heroku
Stars: ✭ 181 (-16.97%)
Mutual labels:  heroku
Kuhero
websocket proxy on heroku
Stars: ✭ 192 (-11.93%)
Mutual labels:  heroku
Wordpress Heroku
This project is a template for installing and running WordPress 5.x on Heroku.
Stars: ✭ 198 (-9.17%)
Mutual labels:  heroku
Next Postgres Sequelize
React 16.8.4 + NextJS 8.0.3 + Emotion + Sequelize 5/Postgres + Passport Local Auth + Google App Engine or Heroku Deployment
Stars: ✭ 176 (-19.27%)
Mutual labels:  heroku
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (-0.46%)
Mutual labels:  heroku
Icare
Open Source Carpooling Platform
Stars: ✭ 196 (-10.09%)
Mutual labels:  heroku
Idea Live Templates
My IntelliJ Live Templates
Stars: ✭ 207 (-5.05%)
Mutual labels:  heroku
Fridayuserbot
A Pluggable And Powerful Telegram Manager Bot
Stars: ✭ 183 (-16.06%)
Mutual labels:  heroku
Graphql Engine Heroku
Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events.
Stars: ✭ 188 (-13.76%)
Mutual labels:  heroku
Vuejs Rails Starterkit
Vue.js + Rails Starting Kit GitHub Template to develop Hybrid Mobile Application: https://vuejs-rails-starterkit.herokuapp.com
Stars: ✭ 205 (-5.96%)
Mutual labels:  heroku
Line Bot Tutorial
Line bot tutorial.
Stars: ✭ 181 (-16.97%)
Mutual labels:  heroku
Go Getting Started
Getting Started with Go on Heroku https://devcenter.heroku.com/articles/getting-started-with-go
Stars: ✭ 210 (-3.67%)
Mutual labels:  heroku
Angular Quiz App
A music quiz in Angular 2+ using the Spotify API.
Stars: ✭ 180 (-17.43%)
Mutual labels:  heroku
React Demo Store
Moltin + React powered online store
Stars: ✭ 198 (-9.17%)
Mutual labels:  heroku
Clojurenews
Clojure News Web Application - (Hacker News Clone)
Stars: ✭ 217 (-0.46%)
Mutual labels:  heroku
Subdir Heroku Buildpack
Allows to use subdirectory configured via environment variable as a project root
Stars: ✭ 211 (-3.21%)
Mutual labels:  heroku
Java Getting Started
Getting Started with Java on Heroku
Stars: ✭ 206 (-5.5%)
Mutual labels:  heroku

HaikunatorJS

Build Status Latest Version Dependency Status devDependency Status Coverage Status

Generate Heroku-like random names to use in your node applications.

Installation

npm install --save haikunator

Usage

Haikunator is pretty simple.

var Haikunator = require('haikunator')
// ES6: import Haikunator from 'haikunator'

// Instantiate Haikunator without options
// var haikunator = new Haikunator()

// Instantiate Haikunator with default options
var haikunator = new Haikunator({
    adjectives: ['custom', 'adjectives'],
    nouns: ['custom', 'nouns'],
    seed: 'custom-seed',
    defaults: { // class defaults
        tokenLength: 8,
        tokenChars: 'HAIKUNATOR',
        // ...
    }
})

// default usage
haikunator.haikunate() // => "wispy-dust-1337"

// custom length (default=4)
haikunator.haikunate({tokenLength: 6}) // => "patient-king-887265"

// use hex instead of numbers
haikunator.haikunate({tokenHex: true}) // => "purple-breeze-98e1"

// use custom chars instead of numbers/hex
haikunator.haikunate({tokenChars: "HAIKUNATE"}) // => "summer-atom-IHEA"

// don't include a token
haikunator.haikunate({tokenLength: 0}) // => "cold-wildflower"

// use a different delimiter
haikunator.haikunate({delimiter: "."}) // => "restless.sea.7976"

// no token, space delimiter
haikunator.haikunate({tokenLength: 0, delimiter: " "}) // => "delicate haze"

// no token, empty delimiter
haikunator.haikunate({tokenLength: 0, delimiter: ""}) // => "billowingleaf"

Options

The following options are available:

var Haikunator = require("haikunator")

var haikunator = new Haikunator({
    adjectives: ['custom', 'adjectives'],
    nouns: ['custom', 'nouns'],
    seed: 'custom-seed', // Custom seed
    defaults: { // Class wide defaults, can get overridden by haikunate(options)
        delimiter: "-",
        tokenLength: 4,
        tokenHex: false,
        tokenChars: "0123456789",
    }
})

// Same options are also available on the haikunate method
haikunator.haikunate({
    delimiter: "-",
    tokenLength: 4,
    tokenHex: false,
    tokenChars: "0123456789"
})

If tokenHex is true, any tokens specified in tokenChars are ignored

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:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].