thedesk/app/node_modules/pngjs/lib/png-sync.js

17 lines
254 B
JavaScript
Raw Permalink Normal View History

2019-09-13 00:38:13 +10:00
'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);
};