npm.io
0.7.2 • Published 5h ago

@yuku-analyzer/wasm

Licence
MIT
Version
0.7.2
Deps
2
Size
761 kB
Vulns
0
Weekly
0
Stars
833

@yuku-analyzer/wasm

The yuku-analyzer semantic analyzer as a single WebAssembly module: scopes, symbols, resolved references, and cross-file linking, with the same API as the native package.

Usage

import { analyze } from "@yuku-analyzer/wasm";

const m = analyze("const x = 1; x;");
const x = m.rootScope.find("x");
console.log(x.references.length); // 1

Keywords