From 6bca022d05e55083c94b7145434910ceb4bdf265 Mon Sep 17 00:00:00 2001 From: Philip <17368112+vHeemstra@users.noreply.github.com> Date: Wed, 11 Jan 2023 17:29:24 +0100 Subject: [PATCH] docs: Update readme * Added scripts for newly available build versions --- readme.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/readme.md b/readme.md index 14cf65e..b8edcba 100644 --- a/readme.md +++ b/readme.md @@ -24,6 +24,8 @@ isApng(buffer) ### Browser  Chrome Edge Firefox Safari Opera +#### As package through NPM + ```js import isApng from 'is-apng' @@ -34,6 +36,55 @@ isApng(new Uint8Array(buffer)) // => true ``` +#### As old-school global script tag + +Url for latest version: `https://unpkg.com/is-apng`
+Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.js` + +```html + + + +``` + +#### As module + +Url for latest version: `https://unpkg.com/is-apng/dist/index.esm.js`
+Url for specific version: `https://unpkg.com/is-apng@1.0.1/dist/index.esm.js` + +```html + +``` + +or + +```html + + + + + +``` + ## API ### isApng(buffer)