Skip to main content
版本: 0.8

Node.js API

添加依赖

npm install kcl-lib

快速开始

import { execProgram, ExecProgramArgs } from "kcl-lib";

function main() {
const result = execProgram(new ExecProgramArgs(["path/to/kcl.k"]));
console.log(result.yamlResult);
}

main();