mirror of
https://github.com/danbulant/pngjs
synced 2026-05-27 05:41:47 +00:00
16 lines
236 B
JavaScript
16 lines
236 B
JavaScript
'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) {
|
|
|
|
return pack(png);
|
|
};
|