UNPKG

@fitbit/pngjs

Version:

PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.

17 lines (9 loc) 254 B
'use strict'; var parse = require('./parser-sync'); var pack = require('./packer-sync'); exports.read = function(buffer, options) { return parse(buffer, options || {}); }; exports.write = function(png, options) { return pack(png, options); };