Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anthonypenna/corona-virus-js

Blazing fast library for sprinkling your web app with some top notch coughing. 👌😷🚀
https://github.com/anthonypenna/corona-virus-js

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```sh
$ npm install corona-virus-js
```

## Usage

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

```js
import CoronaVirus from "corona-virus-js/dist";

const scaryButton = document.querySelector("#my-scary-button");

scaryButton.addEventListener("click", () => {
CoronaVirus.spread({ target: '#app' });
});
```