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,
});

// Burst some poop!
poopetti();

// Burst some poop in your style!
poopetti({
  emoji: '💩',
  duration: 3000,
  density: 50,
radius: 200,
});

rainPoop Options

OptionTypeDescription
emojistringThe emoji to rain (default: 💩)
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)