
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
kefir-stopper
Advanced tools
This is a small javascript library for use with the Kefir library which creates
a Kefir property with a destroy method which causes it to emit an event and end
immediately. This works well with Kefir's takeUntilBy
method.
Works with Node.js and CommonJS bundlers like Browserify and Webpack.
yarn add kefir-stopper
Examples use ES6, but ES6 is not necessary to use kefirStopper. (Babel is an excellent tool to use to get ES6!)
const Kefir = require('kefir');
const kefirStopper = require('kefir-stopper');
const stopper = kefirStopper();
function userHitCancel() {
stopper.destroy();
}
console.log('Loading...');
Kefir.later(5000, null)
.takeUntilBy(stopper)
.onValue(() => console.log('Done.'));
A stopper object also has a stopped
property which is a boolean that starts
as false and is set to true once its destroy
method is called.
Both TypeScript and Flow type definitions for this module are included! The type definitions won't require any configuration to use.
2.2.0 (2018-09-25)
FAQs
Small Kefir utility for signifying an event has happened
We found that kefir-stopper 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.