PNG image decoder written entirely in JavaScript
$ npm install fast-png
This package is written using ES2015 features. It is natively compatible with recent browsers and Node.js. You can transpile it with a tool like babel if you need to support more JavaScript engines.
Spec can be found at: http://www.w3.org/TR/PNG/