1.1.1 • Published 5 years ago

congenial-engine v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

npm version

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!
1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago