2.0.0 • Published 3 years ago

xstream-from-callback v2.0.0

Weekly downloads
4
License
MIT
Repository
-
Last release
3 years ago

xstream-from-callback

Convert a Node.js-style callback (err, data): void to an xstream Stream.

npm install xstream-from-callback

usage

Note: this helper takes a function as input, and returns a function, similar to RxJS bindNodeCallback.

import xsFromCallback from 'xstream-from-callback'
const fs = require('fs');

const stream = xsFromCallback(fs.readFile)('/etc/hosts')
2.0.0

3 years ago

1.2.0

3 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

8 years ago