title: node.js serialport read data - parsing issues
body: <p>I am trying to parse information from a serial port using the serialport module for Node.js. 
  I am trying to parse this example packet, using 0a as the delimiter:</p>
  
  <pre><code>133733100a6E0686173650aFE0aEF100a52A48BAA5126EAABA66B45E94994
  </code></pre>
  
  <p>This is the code I am using:</p>
  
  <pre><code>const SerialPort = require('serialport');
  
  var portName = 'COM8';
  const Readline = SerialPort.parsers.Readline;
  
  const port = new SerialPort(portName, {
      baudRate: 9600,
      dataBits: 8,
      parity: 'none',
      stopBits: 1,
      flowControl: false
  });
  
  const parser = port.pipe(new Readline({ delimiter: '0a' }));
  
  parser.on('data', function(data) {
      var bits = data;
      console.log(bits);
  });
  </code></pre>
  
  <p>When I run this, I get the output:</p>
  
  <pre><code>13373310
  6E068617365
  FE
  EF10
  52A48BAA5126EAABA66B45E94994
  </code></pre>
  
  <p>I want to then take each of these lines and store them in a separate array for later use. However, if I try to access bits as an array, I get the first column of data, rather than the first row, like so:</p>
  
  <pre><code>console.log(bits);
  </code></pre>
  
  <p>becomes </p>
  
  <pre><code>console.log(bits[0]);
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>1
  6
  F
  E
  5
  </code></pre>
  
  <p>how can I access the data as lines instead of columns?</p>