-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
165 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# is-apng [![Latest GitHub release][release-image]][release-url] [![Latest NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] | ||
|
||
> Check if a Buffer/Uint8Array is a [Animated PNG / APNG](https://en.wikipedia.org/wiki/APNG) image | ||
> Checks if a Buffer/Uint8Array contains a [Animated PNG / APNG](https://en.wikipedia.org/wiki/APNG) image. | ||
> [!IMPORTANT] | ||
> This is _only_ a quick detect method and does not do full (A)PNG file validation.<br> | ||
> For security and file integrity sensitive operations, use a true (A)PNG validator (see also [specs](https://www.w3.org/TR/png/)). | ||
## Install | ||
|
||
|
@@ -40,7 +44,7 @@ isApng(new Uint8Array(buffer)) | |
#### As old-school global script tag | ||
|
||
Url for latest version: `https://unpkg.com/is-apng`<br> | ||
Url for specific version: `https://unpkg.com/[email protected].3/dist/index.js` | ||
Url for specific version: `https://unpkg.com/[email protected].4/dist/index.js` | ||
|
||
```html | ||
<script src="https://unpkg.com/is-apng" type="text/javascript"></script> | ||
|
@@ -54,7 +58,7 @@ Url for specific version: `https://unpkg.com/[email protected]/dist/index.js` | |
#### As module | ||
|
||
Url for latest version: `https://unpkg.com/is-apng/dist/index.mjs`<br> | ||
Url for specific version: `https://unpkg.com/[email protected].3/dist/index.mjs` | ||
Url for specific version: `https://unpkg.com/[email protected].4/dist/index.mjs` | ||
|
||
```html | ||
<script type="module"> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters