@chientrm/es
v0.1.39
Published
<p align="center"> <img src="https://raw.githubusercontent.com/chientrm/es/main/logo.png" height="130"> </p>
Downloads
34
Maintainers
Readme
escript - :pray: a scripting language run on top of JavaScript :pray:
Why escript:question:
:point_right: Zero learning curve :innocent:
- No predefined keywords
- No features assumptions
- Only binary operators are allowed
- Everything except expressions and function invokes are ignored
:point_right: JavaScript compatible :family:
- Run directly on top of JavaScript
- No Virtual Machine
- No Transpilation
- Native escript-JavaScript communication
Installing
npm install @chientrm/es
Usage
:page_facing_up: index.js
import { readFileSync } from "fs";
import { eEval } from "es";
const text = readFileSync("main.es", { encoding: "utf8", flag: "r" });
eEval([{ log: console.log }], "main.es", text);
:page_facing_up: main.es
log("Hello World!");
:tv: Output
Hello World!
Contributing :muscle:
Please see CONTRIBUTING for details.
Examples :green_book:
Coming soon... :construction_worker:
Documentation :green_book:
Building :hammer:
npm run build
Roadmap :partly_sunny:
Coming soon... :construction_worker: