# All files png-sync.js

83.33% Statements 5/6
100% Branches 2/2
50% Functions 1/2
83.33% Lines 5/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13

    1x
    1x

    1x
    176x

    1x

     "use strict";

    let parse = require("./parser-sync");
    let pack = require("./packer-sync");

    exports.read = function (buffer, options) {
      return parse(buffer, options || {});
    };

    exports.write = function (png, options) {
      return pack(png, options);
    };