0.1.0 • Published 12 years ago

through-parse v0.1.0

Weekly downloads
10
License
-
Repository
-
Last release
12 years ago

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)