jsoo-bin

Binary wrapper for js_of_ocaml

View the Project on GitHub watilde/jsoo-bin

jsoo-bin

Binary wrapper for js_of_ocaml

Getting started

Install

$ npm install -g jsoo-bin

Usage

$ jsoo -h
Usage:
    jsoo [options] [ml files]

Examples:
    jsoo foo.ml bar.ml baz.ml
    jsoo foo.ml bar.ml baz.ml -o out.js

Options:
    -h, --help    Print this message
    -o, --out     Output to single file
    -v, --version Print jsoo-bin version

Example

$ cat hello.ml
print_endline "Hello world!";;

$ jsoo hello.ml -o hello.js
$ ls
hello.cmi hello.cmo hello.js  hello.ml

$ node hello.js
Hello world!