A PNG decoder in JS for the Web-interoperable Runtime.
Install the module using npm:
npm i png-jsRequire the module and decode a PNG:
const PNG = require('png-js');
PNG.decode('some.png', function(pixels) {
// pixels is a 1d array (in rgba order) of decoded pixel data
});