
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
js-confetti
Advanced tools
JS Confetti library with zero dependencies, works without any config, TS typings included, adapts to user screen
🎉 JavaScript Confetti library
Demo: https://loonywizard.github.io/js-confetti/
Install library via yarn or npm
yarn add js-confetti
Initialize instance of JSConfetti class and call addConfetti method
import JSConfetti from 'js-confetti'
const jsConfetti = new JSConfetti()
jsConfetti.addConfetti()
addConfetti
method accepts args object with the following params:
Prop | Type | Description | Default value |
---|---|---|---|
confettiRadius | number | Radius of confetti shape in pixels | 8 |
confettiesNumber | number | Number of confetties to fire | 200 |
confettiColors | string[] | Array of colors for confetti | Array of RGB colors |
jsConfetti.addConfetti({
confettiRadius: 8,
confettiesNumber: 200,
confettiColors: ['#fcf403', '#62fc03', '#f4fc03', '#03e7fc', '#03fca5', '#a503fc', '#fc03ad', '#fc9003']
})
FAQs
JS Confetti library with zero dependencies, works without any config, TS typings included, adapts to user screen
The npm package js-confetti receives a total of 53,725 weekly downloads. As such, js-confetti popularity was classified as popular.
We found that js-confetti demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.