0.0.5 • Published 4 years ago

fs-source v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

FS Source (BOB)

A file system source for the BOB streaming protocol.

Usage

const FileSource = require('fs-source')
new FileSource(path, options)

Implements a BOB source from files.

Example

const FileSource = require('fs-source')

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

sink.bindSource(source, 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

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago