Skip to content

A file system source for the BOB streaming protocol.

License

Notifications You must be signed in to change notification settings

Fishrock123/fs-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A file system source for the BOB streaming protocol.

Resources

License

Stars

Watchers

Forks

Packages

No packages published