17 lines
254 B
JavaScript
17 lines
254 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, options) {
|
|
|
|
return pack(png, options);
|
|
};
|