Skip to content

A file system sink for the BOB streaming protocol.

License

Notifications You must be signed in to change notification settings

Fishrock123/fs-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FS Sink (BOB)

A file system sink for the BOB streaming protocol.

Usage

const FileSink = require('fs-sink')
new FileSink(path, options)

Implements a BOB sink to a file.

Example

const FileSink = require('fs-source')

const source = new MyBOBSink()
const sink = new FileSink('my-file')

sink.bindSource(source)
sink.start(error => {
  if (error)
    console.error('Stream returned error ->', error.stack)
  else {
    console.log('ok')
  }
})

See test-basic for a good working example.

License

MIT LicensedContributions via DCO 1.1

About

A file system sink for the BOB streaming protocol.

Resources

License

Stars

Watchers

Forks

Packages

No packages published