qs-stream

1.0.2 • Public • Published

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
  })

Package Sidebar

Install

npm i qs-stream

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avinoamr