Skip to content

avaer/rnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A random string generator. Supports several different modes of operation for different flavors of text.

Useful for generating initial, placeholder, or missing data in forms, games, fiction, etc.

API

const rnd = require('rnd');

rnd.realName();
// 'Takuya Kusatsu'
// A "real"-looking name that could pass for something in a work of fiction.

rnd.fakeName({gender: 'female'});
// 'Polyth'
// A "fake"-looking name whose only property is that it should be reasonably pronounceable.

rnd.lastName();
// 'Asporix'
// A "last"-looking name suitable as a pronounceable surname.

rnd.noun();
// 'binocle'
rnd.verb();
// 'atomising'
rnd.adjective();
// 'pyrrhic'
rnd.adverb();
// 'kinetically'
// Self-explanatory, chosen from an included dictionary. Good when used in combination.

About

Random string generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published