    return (
                        !this.isEmpty() &&
                        !this.buffer[this.buffer.length - 1].endsWith("\n")
                    );
                }

                hasLineReady() {
                    return !this.isEmpty() && this.buffer[0].endsWith("\n");
                }

                addData(data) {
                    let lines = data.match(/.*(\n|$)/g);
                    if (this.lastLineIsIncomplete()) {
                        this.buffer[this.buffer.length - 1] += li