package quickjs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=bd0ada2cea7051f0d359310bfc6e67453ffc3057e158c4abefc6ba9073d4f1ce
sha512=bfda4ad6d72f27323eac592e2eff4fdab23f465f4a2fcad4743e0654ec18030bed952aec0c27c0b4ed43833c1c97ea4364b4ad563d9b2213aa851fdf3d06f394
Description
Published: 05 Mar 2024
README
quickjs
quickjs.ml is a set of OCaml bindings for QuickJS. QuickJS is a small and embeddable JavaScript engine. It supports the ES2020 specification including modules, asynchronous generators, proxies and BigInt.
The project exposes two libraries:
quickjs.bindings
with the QuickJS C APIquickjs
which exposes a polished API on top ofquickjs.bindings
with the same shape as the JavaScript API
Motivation
The purpose of this project is to provide the same behaviour as the JavaScript engines from browsers (SpiderMonkey, JavaScriptCore, ChakraCore, v8) into OCaml. So code that runs in the browser (via Melange) can be run in native with the same results.
Documentation
Status
This is a work in progress, and currently only includes bindings to RegExp
(binded to libregexp
) check the to bind
issues from the issue tracker.
Dev Dependencies (5)
-
ocamlformat
= "0.26.1" & with-test
-
ocaml-lsp-server
with-test
-
odoc
with-doc
-
fmt
with-test
-
alcotest
with-test