mayonnaise.js
mayonnaise.js copied to clipboard
🎺 Fake data generator for JavaScript, courtesy of Patrick Star
mayonnaise.js

JavaScript fake data generator, courtesy of Patrick Star.
Is mayonnaise an instrument?
Installation
$ npm install mayonnaise.js
Usage
const mayonnaise = require('mayonnaise.js');
// Text is generated from Patrick's wonderful quotations.
const sentence = mayonnaise.sentence;
const sentences = mayonnaise.sentences(3);
const title = mayonnaise.title;
const text = mayonnaise.text;
const description = mayonnaise.description;
const short_description = mayonnaise.short_description;
const string = mayonnaise.string;
const word = mayonnaise.word;
const words = mayonnaise.words(7);
const array_of_words = mayonnaise.array_of_words(7);
const letter = mayonnaise.letter;
// User data is generated from SpongeBob characters.
const name = mayonnaise.name;
const username = mayonnaise.username;
const first_name = mayonnaise.first_name;
const last_name = mayonnaise.last_name;
const full_name = mayonnaise.full_name;
const catch_phrase = mayonnaise.catch_phrase;
// Place and location return different locations from the SpongeBob universe.
const place = mayonnaise.place;
const 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.
Sponsorship 🎗
If you found this project useful, please consider becoming a sponsor on GitHub.