"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = __importDefault(require("./index"));
var itemBuffer;
process.stdout.write('[\n');
process.stdin
    .pipe(index_1.default.parseStream({ parseAll: true }))
    .on('data', function (item) {
    itemBuffer = JSON.stringify(item);
    if (itemBuffer) {
        process.stdout.write(itemBuffer);
        process.stdout.write(',\n');
    }
})
    .on('error', function (err) {
    console.error(err);
    process.exit(1);
})
    .on('end', function () {
    if (itemBuffer) {
        process.stdout.write(itemBuffer);
    }
    process.stdout.write('\n]\n');
});
//# sourceMappingURL=gff-to-json.js.map