babelsbergjs-core
v0.1.4
Published
BabelsbergJS core
Downloads
1
Readme
babelsbergjs-core
An easy to use Node package for BabelsbergJS.
See the original repo for more info on Babelsberg.
Usage
- require babelsbergjs-core and a solver in your Node project:
var bbb = require('babelsbergjs-core');
var bbb_cassowary = require("babelsbergjs-cassowary")
- use constraints
obj = {a: 1, b: 2};
return bbb.always({
solver: new bbb_cassowary.ClSimplexSolver(),
ctx: {obj: obj}
}, function () {
return obj.a + 7 <= obj.b;
});
obj.a = 10; // obj.b is now >= 17
- check out solvers, tools and examples here.