oz-eval
oz's eval components
example
install
browser
$ bower install oz-eval
node.js
$ npm install oz-eval
usage
browser
For bundling systems supporting commonjs, require('oz-eval')
.
The libary is also accessible via one of the build/
files:
oz-eval.js
: oz-eval without its dependenciesoz-eval.all.js
: oz-eval with its dependencies bundledoz-eval.min.js
: minified build of oz-evaloz-eval.all.js
: minified build of oz-eval with its dependencies bundled
If no module system is found, the oz-eval is exposed as the global ozeval
.
nodejs
require('oz-eval')
api
ozeval(opts)
opts
:
in
: the input signal to use for reading evaluation requestsout
: the output signal to use for sending evaluation results and errorseval:
(optional) the evaluation function to use. Defaults to an indirectly calledeval
.