node package manager

naptan-xml2json-parser

Takes a stream of NaPTAN xml data and transforms it to a JSON writable stream

NaptanXMLToJsonStreamingParser

Takes a stream of NaPTAN xml data and transforms it to a JSON writable stream

Example

  var fs = require('fs');
  var naptanParse = require('./index.js');
 
  fs.createReadStream('./NaPTAN.xml').pipe(naptanParse()).pipe(fs.createWriteStream('./naptan.json'));