npm.io
0.0.6 • Published 2 years ago

@caracal7/reactor.js

Licence
MIT
Version
0.0.6
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
2

reactor.js

Lightweight ES6 javascript reactive programming library

Installation

npm i @caracal7/reactor.js

Usage

import Reactor from '@caracal7/reactor.js';

let dataflow = new Reactor();

dataflow.b = a => a + 1;
dataflow.c = b => b + 1;
dataflow.d = a => a + 1;
dataflow.e = (b, d) => b + d;

dataflow.log = e => console.warn(e);

dataflow.a = 5;

Library was created as fork of topologica, and provides similar functionality, but with using ES6 proxy sugar.