1 | "use strict";
|
2 |
|
3 | let parse = require("./parser-sync");
|
4 | let pack = require("./packer-sync");
|
5 |
|
6 | exports.read = function (buffer, options) {
|
7 | return parse(buffer, options || {});
|
8 | };
|
9 |
|
10 | exports.write = function (png, options) {
|
11 | return pack(png, options);
|
12 | };
|