js_of_ocaml

OCaml bytecode to JavaScript compiler (compiler)

Install

All systems
curl cmd.cat/js_of_ocaml.sh
Debian Debian
apt-get install js-of-ocaml
Ubuntu
apt-get install js-of-ocaml
Windows (WSL2)
sudo apt-get update sudo apt-get install js-of-ocaml
Raspbian
apt-get install js-of-ocaml

js-of-ocaml

OCaml bytecode to JavaScript compiler (compiler)

Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. Its key features are the following: * the whole language, and most of the standard library are supported; * the generated code can be used with any web server and browser; * you can use a standard installation of OCaml to compile your programs. In particular, you do not have to recompile a library to use it with Js_of_ocaml. You just have to link your program with a specific library to interface with the browser APIs. This package contains the compiler itself.