mirror of
https://github.com/danbulant/pngjs
synced 2026-06-12 02:50:54 +00:00
15 lines
No EOL
278 B
JavaScript
15 lines
No EOL
278 B
JavaScript
import parse from "./parser-sync.js";
|
|
import pack from "./packer-sync.js";
|
|
|
|
export var read = function (buffer, options) {
|
|
return parse(buffer, options || {});
|
|
};
|
|
|
|
export var write = function (png, options) {
|
|
return pack(png, options);
|
|
};
|
|
|
|
export default {
|
|
read,
|
|
write
|
|
} |