Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.01 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.01 KB

axon.js

Lightweight javascript reactive programming library

Browser

<!DOCTYPE html>
<html>
<head>
    <script src="axon.js"></script>
</head>
<body>
    <script>

        const axon = new Axon();

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

        axon.log = e => console.warn('Answer of life is', e);

        axon.a = 5;

    </script>
</body>
</html>

Node.js

Installation

npm i @caracal7/axon.js

Usage

const Axon = require('@caracal7/axon.js');

const axon = new Axon();

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

axon.log = e => console.warn('Answer of life is', e);

axon.a = 5;

Credits

Library was inspired by topologica.

JS.ORG Logo