@studiokeywi/play
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

studioKeywi: play

Fun bits and bobs for anyone to use!

Contents

  • Confetti

    Generate a shower of confetti on your webpage

  • Konami

    Enable the Konami Code as a way to execute JS functions

Samples and Examples

Throw Confetti with Konami Code

<script type="module" defer>
  import { confetti, konami } from 'https://cdn.jsdelivr.net/gh/studiokeywi/play/dist/index.js';

  const { init, render } = confetti();

  const payload = () => (init(), render());

  const { load, unload } = konami({ once: false, payload });

  load();
</script>

/@studiokeywi/play/

    Package Sidebar

    Install

    npm i @studiokeywi/play

    Weekly Downloads

    0

    Version

    0.0.2

    License

    none

    Unpacked Size

    21.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • tgdkeywi