Skip to content

Cutii/jsoo-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bindings js_of_ocaml for NodeJS

Work in progress

hacking

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.

Install

esy install

Usage

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

Documentation API

You can find API documentation generated by odoc here

About

Bindings Ocaml for Nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published