Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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. 👌😷🚀
- Host: GitHub
- URL: https://github.com/anthonypenna/corona-virus-js
- Owner: anthonypenna
- License: mit
- Created: 2020-02-24T12:36:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:10:13.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T05:16:19.974Z (3 months ago)
- Language: JavaScript
- Size: 1.75 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - corona-virus-js - Blazing fast library for sprinkling your web app with some top notch coughing. 👌😷🚀 (JavaScript)
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' });
});
```