code: function(chunk) {
      // find line or lines in chunk and emit them if not corked
      // or queue them if corked
      var data = this.buffer ? this.buffer + chunk : chunk;
      var lines = data.split(/\r?\n/g);
  
      // save the last line
      this.buffer = lines.pop();
  
      lines.forEach(function(line) {
        if (this.corked) {
          this.queue.push(line);
        } else {
          this.emit('line', line);
        }
      });
  
      return !this.corked;
    }
docs: Events: line: here is a line done: all lines emitted