through-parse

0.1.0 • Public • Published

SYNOPSIS

Breaks out parse() from event stream, emits errors instead of console.error(). If you are intending on parsing JSON that comes from an unknown source, you should use JSONParse.

USAGE

var parse = require('through-parse')
 
stream
  .pipe(parse())
  .pipe(through(function(obj) {
   if (obj.id == 'foo') {
     obj.id = 'bar'
     this.push(obj)
   }
  }).pipe(stream)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    8

Package Sidebar

Install

npm i through-parse

Weekly Downloads

8

Version

0.1.0

License

MIT

Last publish

Collaborators

  • hij1nx