congenial-engine
v1.1.1
Published
A simple command-based scripting runtime
Downloads
2
Readme
congenial-engine
A simple command-based scripting runtime.
Overview
const { Engine } = require("congenial-engine");
const engine = new Engine(); // Create new scripting engine
engine.set("println", (...args) => { // Add "println" command
args.forEach(arg =>
console.log(arg)
);
});
engine.run("println (Hello, world!)"); // > Hello, world!