Skip to content

eliasgs/label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

label Build Status

Inspired by Heroku, label generates random two word identifiers.

Install

npm install label

CLI

usage: label [--delimiter|-d <delimiter>] [--capitalize|-c]
             [--help|-h] [--version|-v]

Usage examples

var label = require('label');

var title = label.generate();
console.log(title); // light beard

var random = label.generate(true);
console.log(random); // Liquid Stream

var uri = 'https://' + label.generate(false, '-') + '.example.com/';
console.log(uri); // https://intimate-rabbit.example.com/

Note

Probability of collision is 0.00007%.

About

Generate easy to remember random identifiers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published