This library is published in the NPM registry and can be installed using any compatible package manager.
npm install amioffline --save
# For Yarn, use the command below.
yarn add amioffline
This module has an UMD bundle available through JSDelivr and Unpkg CDNs.
<!-- For JSDelivr use the code below. -->
<script src="https://cdn.jsdelivr.net/gh/linediconsine/amIoffline/dist/index.mjs"></script>
<script>
import aio from "./aio.js";
aio.whenOffline(alert('OFFLINE'))
</script>
Documentation generated from source files by Typedoc.
Released under MIT License.