npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

install

npm i qs-stream

Downloadsweekly downloads

4

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability