Learn how to Poop in your project.
npm install poopetti
# or
yarn add poopetti
# or
pnpm add poopetti
# or
bun add poopetti
import { rainPoop, poopetti } from 'poopetti';
// Make it rain poop
rainPoop();
// Make it rain poop in your style!
rainPoop({
emoji: 'π©',
duration: 5000,
density: 100,
});
// Make it rain poop in your style!
rainPoop({
emoji: ['π©', 'π', 'π', 'π', 'π‘', 'π΄', 'π·', 'π΅', 'π³', 'π±'],
duration: 10000,
density: 500,
});
// Burst some poop!
poopetti();
// Burst some poop in your style!
poopetti({
emoji: 'π©',
duration: 3000,
density: 50,
radius: 200,
});
// Burst some poop in your style with PiΓ±ata style!
poopetti({
content: ['π©', 'π₯', 'βοΈ'],
});
Option | Type | Description |
---|---|---|
emoji | string or string[] | The emoji to rain (default: π©) or an array of emojis to rain |
duration | number | Duration of the poop rain in milliseconds (default: 5000) |
density | number | How much poop to rain (default: 50) |
Option | Type | Description |
---|---|---|
emoji | string | The emoji to burst (default: π©) |
duration | number | Duration of the poop explosion in milliseconds (default: 1500) |
density | number | How explosive the poop should be (default: 50) |
radius | number | The radius of the poop explosion (default: auto) |
content | string or string[] | The content of the poop explosion (default: π©) |