Skip to content

Commit

Permalink
Create NPM module
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
Scimonster committed Aug 7, 2017
1 parent e984235 commit cf8ad8d
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 72 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ A small, fast and advanced PNG encoder and decoder. It is the main PNG engine fo
* [Try UPNG.js in Photopea](https://www.photopea.com) - open an image and press File - Save for web, play with the Quality
* Support us by [making a donation](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ivan%2ekuckir%40gmail%2ecom&lc=CZ&item_name=UPNG%2ejs&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted).

## Installation

Download and include the `UPNG.js` file in your code. If you're in NodeJS or otherwise using NPM, run:

```sh
npm install upng-js
```

## Encoder

#### `UPNG.encode(rgba, w, h, cnum)`
Expand Down
Loading

0 comments on commit cf8ad8d

Please sign in to comment.