npm.io
0.17.0 • Published yesterday

yuku-core

Licence
MIT
Version
0.17.0
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
947

yuku-core

Yuku's native core, the compiled code every Yuku package runs on. It is installed with them and used by default, so you only import it to choose the core explicitly.

import { load } from "yuku-core";
import { parse } from "yuku-parser";

const core = load();

parse("const x = 1;", { core });

load() loads the build for your platform. In browsers, edge runtimes, and on platforms without a native build, use @yuku-core/wasm the same way.

License

MIT

Keywords