1.1.1 • Published 10 years ago

epithet v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

epithet

Very simple random name generator.

Compatible with browserify.

Installation

$ npm install epithet

Install with the --save (or -S) flag to add epithet to your package’s dependencies.

Install with the --save-dev (or -D) flag to add epithet as a development dependency, for example if you are only bundling it for client-side use with browserify.

Usage

var epithet = require('epithet');

firstTitle = epithet.choose(); // firstTitle = 'brilliant-friend';
secondTitle = epithet.choose('.'); // secondTitle = 'new.name';

Methods

.choose(opt)

epithet.choose() returns a string combining an adjective and a noun joined by a separator, e.g. lost-child.

An optional argument specifies the separator between the adjective and the noun. If no argument is provided, the default hyphen is used.

.randomWord(opt)

Returns a random string.

An optional argument specifies the word type and can be one of adjective or noun. If no argument is provided, a type of noun is assumed.

.returnDict(opt)

Returns an array of all the words of a certain type in epithet’s dictionary.

An optional argument specifies the word type and can be one of adjective or noun. If no argument is provided, a type of noun is assumed.

Acknowledgements

Based on moniker’s dictionaries.

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago