Enso
Minimalistic TypeScript-first state managment library for Node.js and browser.
It's just 120 bytes, but it can be used to manage state in complex applications.
TypeScript-first approach ensures complete type-safety.
Simplistic API allows to get the state managment out of the way and write code.
// Define state // Update state every secondsetIntervalsetcounter + 1, 1000 // Listen to state changes. The passed function is also trigger with the initial state .startinitialCounter,console.lognewCounter, prevCounter//=> 0 undefined//=> 1 0//=> 2 1//=> ... // Get the current statesetTimeoutconsole.logget, 3000//=> 3