1.1.0 • Published 6 years ago
mayonnaise.js-browserify v1.1.0
mayonnaise.js
JavaScript fake data generator, courtesy of Patrick Star.
Forked from nathanchapman, make it broserfifyable.
Installation
$ npm install mayonnaise.js
Usage
const mayonnaise = require('mayonnaise.js');
// Text is generated from Patrick's wonderful quotations.
let sentence = mayonnaise.sentence;
let sentences = mayonnaise.sentences(3);
let title = mayonnaise.title;
let text = mayonnaise.text;
let description = mayonnaise.description;
let short_description = mayonnaise.short_description;
let string = mayonnaise.string;
let word = mayonnaise.word;
let words = mayonnaise.words(7);
let array_of_words = mayonnaise.array_of_words(7);
let letter = mayonnaise.letter;
// User data is generated from SpongeBob characters.
let name = mayonnaise.name;
let username = mayonnaise.username;
let first_name = mayonnaise.first_name;
let last_name = mayonnaise.last_name;
let full_name = mayonnaise.full_name;
let catch_phrase = mayonnaise.catch_phrase;
// Place and location return different locations from the SpongeBob universe.
let place = mayonnaise.place;
let location = mayonnaise.location;
...
API
mayonnaise.js
uses casual under the hood, so you can use all of the generators specified in their documentation as well as various locales.
1.1.0
6 years ago