The most useless but adorable placeholder generator in the npm ecosystem. Because your project deserves koala-themed mock data.
Because lorem ipsum is boring. Because faker is too serious. Because your tests deserve to be adorable and absurd. Because koalas.
npm install koalazimport Koala from 'koalaz';
// or
// const Koala = require('koalaz');
// Generate absurd JSON data about koalas
const koala = Koala.generateJSONData();
console.log(koala);
// {
// id: 'KOALA-4287',
// name: 'Sir Dormington',
// age: 12,
// sleepHours: 21,
// eucalyptusConsumed: '743g',
// mood: 'sleepy',
// currentActivity: 'contemplating existence',
// funFact: 'Brain occupies only 61% of skull, rest is empty',
// lastMoved: '47 hours ago',
// treeLoyalty: '94%'
// }
// Lorem ipsum made of koala sounds
console.log(Koala.getLoremIpsum(2, 3));
// WAAAAH grrrumph eucalyptus munch snort. zzzzz wheeze grunt...
// ASCII Art!
console.log(Koala.getArt('judging'));
// Κ ΰ² α΄₯ΰ² Κ
// /| |\\
// (_| |_)
// judging you
// Fake data tables
const table = Koala.getTable(3);
console.log(table);
// API response faker
const response = Koala.getAPI('/api/koalas/sleep');
// And much more!
console.log(Koala.getName()); // 'Supreme Eucalyptus'
console.log(Koala.getFact()); // 'Sleeps more than you've ever dreamed of'
console.log(Koala.getColor()); // '#8B7D6B'
console.log(Koala.getEmail()); // 'sir.dormington@sleepy.land'
console.log(Koala.getActions(3)); // Array of 3 ridiculous actionsGenerates JSON objects with completely absurd koala data.
Lorem ipsum made entirely of koala sounds. Perfect for text placeholders.
ASCII art of koalas. Variants: 'classic', 'sleeping', 'judging', 'party', 'error'
List of ridiculous actions that koalas might do (or more likely won't do).
Generates fake tabular data in array format.
Random number with bias towards lower values (like koalas: slow and lazy).
Mock complete API response with absurd metadata.
getName()- Random namegetFact()- Random factgetColor()- Hexadecimal color inspired by koalasgetEmail()- Fake emailgetPassword()- "Secure" passwordgetDelay(ms)- Async "realistic" delay (slow like a koala)
- Testing & Mocking: Fun placeholder data for automated tests
- Prototypes: Fill your UIs with adorable content
- Demos: Impress clients with koalas instead of "Lorem ipsum dolor sit amet"
- Presentations: Why not?
- Procrastination: The main reason
Pull requests welcome! Especially if you add more absurd koala facts or new ASCII art variants.
MIT - Do whatever you want, but please credit the koalas.
- Koalas are protected animals. This package is not.
- No koalas were awakened during development.
- The author is not responsible for excessive use of koala emojis in your projects.
- If this package made you smile, mission accomplished π
Yes, some of the facts in the code are real:
- Koalas really do sleep 18-22 hours a day
- Their fingerprints are almost identical to humans
- Their brain is strangely small for their skull
- "Koala" really means "no drink" in an Aboriginal language
- Baby koalas really eat... let's not go there
Made with π΄ and πΏ by a koala on a tree somewhere in Australia Italy
