package node_of_ocaml

All checked builds pass
  1. Overview
  2. Docs
An OCaml ppx to require node modules

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=31e966a5e495d7f5a76d65d0bed65d49
sha512=91bd1184132a497491db55b460da27f8fa7301aabe8c2034ab404e2f15d6baa821bcfe4c4bb14e972602a907f24d57075de2fd80807c45ec16e97402022a5a24

Description

Added to opam-repository:

README

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)
  (preprocess (pps node_of_ocaml)))

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.

Dependencies (3)

  1. js_of_ocaml
  2. ppxlib >= "0.6.0"
  3. dune >= "2.8"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building node_of_ocaml with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure