Poopetti

Getting Started with Poopetti

Learn how to Poop in your project.

Installation

npm install poopetti
# or
yarn add poopetti
# or
pnpm add poopetti
# or
bun add poopetti

Usage

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: ['πŸ’©', 'πŸ”₯', '⭐️'],
});

rainPoop Options

OptionTypeDescription
emojistring or string[]The emoji to rain (default: πŸ’©) or an array of emojis to rain
durationnumberDuration of the poop rain in milliseconds (default: 5000)
densitynumberHow much poop to rain (default: 50)

poopetti Options

OptionTypeDescription
emojistringThe emoji to burst (default: πŸ’©)
durationnumberDuration of the poop explosion in milliseconds (default: 1500)
densitynumberHow explosive the poop should be (default: 50)
radiusnumberThe radius of the poop explosion (default: auto)
contentstring or string[]The content of the poop explosion (default: πŸ’©)