import gff from './index';
let itemBuffer;
process.stdout.write('[\n');
process.stdin
    .pipe(gff.parseStream({ parseAll: true }))
    .on('data', (item) => {
    itemBuffer = JSON.stringify(item);
    if (itemBuffer) {
        process.stdout.write(itemBuffer);
        process.stdout.write(',\n');
    }
})
    .on('error', (err) => {
    console.error(err);
    process.exit(1);
})
    .on('end', () => {
    if (itemBuffer) {
        process.stdout.write(itemBuffer);
    }
    process.stdout.write('\n]\n');
});
//# sourceMappingURL=gff-to-json.js.map