compile-run
Version:
You can execute programs in different languages using this package
21 lines (20 loc) • 958 B
TypeScript
import { Options, errorResultCallback, Result } from "../types";
/**
* execute the JavaScript source code provided as a string in a node environment
* @param soureCode Source code as a string
* @param options Optional Options object
* @param callback Optional callback
*/
export declare function runNodeSourceCode(soureCode: string, options: Options, callback: errorResultCallback): Promise<Result>;
/**
* execute the JavaScript source code provided as a string in a node environment
* @param soureCode Source code as a string
* @param callback Optional callback
*/
export declare function runNodeSourceCode(soureCode: string, callback: errorResultCallback): Promise<Result>;
/**
* execute the JavaScript source code provided as a string in a node environment
* @param soureCode Source code as a string
* @param options Optional Options object
*/
export declare function runNodeSourceCode(soureCode: string, options?: Options): Promise<Result>;