Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Converts various types of streams to Kefir streams. This is intended for use by libraries which use Kefir internally, but want to be able to accept streams from other libraries or other versions of Kefir as arguments given by the application.
KefirCast is intended for use in nodejs and in browsers via CommonJS bundlers like Browserify. This project is in NPM and can be installed with
npm install kefir-cast
The related project BaconCast exists to convert streams to Bacon.js streams.
Suppose you have a library that exports a single function doStuff
, which can
take a stream as an argument. By using KefirCast, you can support any RxJS
streams, Kefir streams, Bacon.js streams, or constants that your users might
pass to you.
var Kefir = require('kefir');
var kefirCast = require('kefir-cast');
module.exports = function doStuff(input) {
var inputStream = kefirCast(Kefir, input);
// Log anything that comes through the stream for 5 seconds.
inputStream.takeUntilBy(Kefir.later(5000)).onValue(function(value) {
console.log('doStuff received value', value);
});
}
If you did not use KefirCast, then your users would be required to use the same version of Kefir as you, you wouldn't support RxJS or Bacon streams without more work, and you would have to handle non-stream constant values specially.
kefirCast(Kefir, input)
takes your Kefir library instance as the first
argument, and the input stream or constant to convert into a Kefir stream as
the second argument. A Kefir stream compatible with the given Kefir library
will be returned.
2.0.0 (2015-04-23)
FAQs
Convert various types of streams to Kefir streams.
The npm package kefir-cast receives a total of 11,866 weekly downloads. As such, kefir-cast popularity was classified as popular.
We found that kefir-cast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.