zig-js

Installation

Add zig-js to your build.zig.zon:

zig fetch --save git+https://github.com/zig-utils/zig-js

Then wire the module up in build.zig:

const js = b.dependency("js", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.addImport("js", js.module("js"));

Requires Zig 0.17.0-dev or newer.

Or through Pantry:

pantry add zig-js