1.0.2 • Published 9 years ago

qs-stream v1.0.2

Weekly downloads
84
License
MIT
Repository
github
Last release
9 years ago

qs-stream

Stream parsing query-string files separated by new lines, built on top of the wonderful qs library with support for nesting and arrays

Maybe be useful for some log formats, but more importantly it provides the groundwork for building more complex parsers like Apache access logs or CloudFront logs

Usage

npm install qs-stream
var qsstream = require( "qs-stream" );

fs.createReadStream( "queries.log" ) // new-line separated list of querystrings
  .pipe( qsstream() )
  .on( "data", function ( queryObject ) {
    // do something awesome
  })