Work in progress
This library provides bindings for NodeJS v14.x : documentation
It use gen_js_api and js_of_ocaml
The directory lib
is the library itself, bin
is an example of usage in Ocaml and example
is a nodejs environment for runtime.
esy install
open NodeJS
let myBuffer = Buffer.alloc 10
let myBuffer2 = Buffer.alloc_with_fill 10 "a"
let comparison = Buffer.compare myBuffer myBuffer2 |> Console.log_int
To compile, run : npm run compile
To run example, run : npm run example
You can find API documentation generated by odoc here