🐶 If there are no dogs in Heaven, then when I die I want to go where they went.
bkc is a simple programming language, based on javascript. All bkc lang will run in a sandbox environment, so bkc is safe for untrust user input.
npm install bkc --save
You can use bkc in nodeJS environment or browser (commonjs)
Use bkc without external function.
import bkc from 'bkc';
// es5
const bkc = require('bkc').default;
bkc("print 'hello world!'"); // hello world!
Use bkc with an external function.
import bkc from 'bkc';
// es5
const bkc = require('bkc').default;
bkc("hello 'hello world!'", [
{
command: 'hello',
func: (arg) => {
console.log(arg);
}
}
]); // hello world!
Created by Ghoti-CLI 3.3.8