tokay-wasm

Crates.iotokay-wasm
lib.rstokay-wasm
version0.6.12
created_at2025-07-23 13:51:22.919367+00
updated_at2025-08-02 21:22:25.461071+00
descriptionTokay programming language (WASM-bindings)
homepagehttps://tokay.dev/
repositoryhttps://github.com/tokay-lang/tokay-wasm
max_upload_size
id1764805
size27,501
Jan Max Meyer (phorward)

documentation

README

Tokay (WASM)

This is the web-assembly package of the Tokay programming language for NPM.

Tokay is a programming language designed for ad-hoc parsing. It is written in Rust, and can be found officially here.

[!IMPORTANT] Tokay (WASM) is in an early project state, therefore things on the package as well as the bindings may change! The package is kept synchronous to the current Tokay release version.

Usage

import { run } from 'tokay';

console.log(run("Int * 3", "123 456 789"));
// (369, 1368, 2367)

Build & publish

Althought this crate and repo is called tokay-wasm, the released npm package is called just tokay. This is ensured by the Makefile. Run make pkg and make publish to perform the required steps.

Invoking manual builds:

  • for bundlers like vite: wasm-pack build --target=bundler --out-name=tokay
  • for nodejs: wasm-pack build --target=nodejs --out-name=tokay
  • for web: wasm-pack build --target=web --out-name=tokay

License

Copyright © 2025 by Jan Max Meyer, Phorward Software Technologies.

Tokay is free software under the MIT license.
Please see the LICENSE file for details.

Commit count: 0

cargo fmt