0.1.1 • Published 11 years ago

object-stream-to-fs v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

#object-stream-to-fs

consume a stream of objects and save them to a file.

specify a path to the target file.

build status

example

save objects to a file:

var s = objectStreamToFS('/tmp/fileOut');
s.on('finish', function(){
  console.log("the object stream has been consumed!")
});

objs.pipe(s);

methods

var objectStreamToFS = require('object-stream-to-fs')

var s = objectStreamToFS(filePath)

consume the entire stream of objects.

the returned object s is a Stream.

events

d.on('done', function () {})

Emitted when all writes have been completed and the object stream has been consumed.

install

With npm do:

npm install object-stream-to-fs

license

MIT