nolanlawson/pouchdb-replication-stream — pull request #4 by calvinmetcalf (2014-09-08 08:36:19+00:00)
Title: real stream

couple updates, writeable-stream is now a transform stream that writes to itself and pipes to the write stream, it also uses prototypes and other big boy javascript features

index.js was updated specifically the load function to be 100% streamy as it's now a pipe that

1. spits the line deliniated json file
2. filters out the black lines and empty doc objects and then emits each doc
3. batches the docs into groups of 50 (this might not be neccisary)
4. pushes them into the database via my pouch-stream plugin