Skip to content

Files

Latest commit

6893e78 · Jan 22, 2025

History

History

js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 7, 2024
Dec 7, 2024
Jan 22, 2025
Jun 14, 2022
Jun 14, 2022
Jul 30, 2022
Dec 7, 2024
Jun 14, 2022
Dec 7, 2024
Dec 7, 2024
Jun 14, 2022
Jun 14, 2022
Jun 14, 2022

TypeScript Bindings

This directory contains JavaScript code to automatically derive TypeScript bindings for the C API, which are published on npm as z3-solver.

The readme for the bindings themselves is located in PUBLISHED_README.md.

Building

You'll need to have emscripten set up, along with all of its dependencies. The easiest way to do that is with emsdk. Newer versions of emscripten may break the build; you can find the version used in CI in this file.

Then run npm i to install dependencies, npm run build:ts to build the TypeScript wrapper, and npm run build:wasm to build the wasm artifact.

Build on your own

Consult the file build-wasm.ts for configurations used for building wasm.

Tests

Run npm test after building to run tests.