corona-virus-js

1.1.21 • Public • Published

Corona Virus JS

Blazing fast library for sprinkling your web app with some top notch coughing. 👌😷🚀

Guaranteed to scare away friends, family and coworkers 💯.

Installation

$ npm install corona-virus-js

Usage

Be aware that the user must first have interacted with the DOM before being able to play audio.

import CoronaVirus from "corona-virus-js/dist";
 
const scaryButton = document.querySelector("#my-scary-button");
 
scaryButton.addEventListener("click", () => {
  CoronaVirus.spread({ target: '#app' });
});

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i corona-virus-js

    Weekly Downloads

    1

    Version

    1.1.21

    License

    MIT

    Unpacked Size

    7.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • anthonypenna