package quickjs

  1. Overview
  2. Docs
Bindings for QuickJS (a Javascript Engine to be embedded https://bellard.org/quickjs)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickjs-0.2.0.tbz
sha256=3d5292edcdf8e464339930e35e29e345d1045d9de67ea0261542156f6d36f5a5
sha512=9a49cec0e9fe1b422371a673b722c33cc9454ef91a351ab1f870bafec0acf632c10056fc94d2b848854e0c1ccf34a2d82c7c5eaed8ca4ad41470541ea765fcb8

doc/index.html

quickjs

quickjs 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 API.
  • The library quickjs which exposes a polished API on top of quickjs.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.

Status

This is a work in progress, and currently only includes bindings to RegExp (binded to libregexp.c).