You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
479 B
12 lines
479 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const serializer_1 = require("./serializer");
|
|
exports.serialize = serializer_1.serialize;
|
|
const parser_1 = require("./parser");
|
|
function parse(stream, callback) {
|
|
const parser = new parser_1.Parser();
|
|
stream.on('data', (buffer) => parser.parse(buffer, callback));
|
|
return new Promise((resolve) => stream.on('end', () => resolve()));
|
|
}
|
|
exports.parse = parse;
|
|
//# sourceMappingURL=index.js.map
|