Skip to content

emilienlemaire/node_of_ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node_of_ocaml

This is a simple OCaml ppx rewriter to use node modules in OCaml.

Install

opam install node_of_ocaml

Usage

In your dune file:

(executable
  (name <exe_name>)
  (modes js)
  (libraries js_of_ocaml)
  (preprocess (pps node_of_ocaml js_of_ocaml-ppx)))

If you wish to use a node module, just use this:

let uniq = [%require uniq]

To use the compiled file in your browser you cin use your favorite JavScript bundler.

About

Small OCaml ppx to require node packages

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages