Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
value-enhancer
Advanced tools
A tiny library to enhance value with reactive wrapper.
npm add value-enhancer
The goal of this lib is to bring reactivity to values like MobX but without the implicit-cast magic. It is like RxJS but trimmed and simplified with the focus on value changes instead of async operations which resulted in much smaller codebase.
import { Val, combine } from "value-enhancer";
const val = new Val(2);
console.log(val.value); // 2
val.setValue(3);
console.log(val.value); // 3
val.subscribe(value => console.log(`subscribe: ${value}`)); // subscribe: 3
val.reaction(value => console.log(`reaction: ${value}`)); // (nothing printed)
val.setValue(3); // nothing happened
val.setValue(4); // subscribe: 4, reaction: 4
const derived = val.derive(value => value * 3);
console.log(derived.value); // 12
derived.subscribe(value => console.log(`derived: ${value}`)); // derived: 12
const combined = combine([val, derived], ([val, derived]) => val + derived);
console.log(combined.value); // 16
combined.subscribe(value => console.log(`combined: ${value}`)); // combined: 16
val.setValue(5); // subscribe: 5, reaction: 5, derived: 15, combined: 20
FAQs
Enhance value with plain and explicit reactive wrapper. Think of it as hook-style signals.
The npm package value-enhancer receives a total of 0 weekly downloads. As such, value-enhancer popularity was classified as not popular.
We found that value-enhancer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.