2.0.0 • Published 2 years ago

xstream-from-callback v2.0.0

Weekly downloads
4
License
MIT
Repository
-
Last release
2 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

2 years ago

1.2.0

2 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

7 years ago