@chientrm/es

0.1.39 • Public • Published

escript - :pray: a scripting language run on top of JavaScript :pray:

ci Commit Coverage Languages Analysis Discord Dependencies Dev Dependencies Repo size Download Sponsors Issues License Version Contributors

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

📄 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);

📄 main.es

log("Hello World!");

📺 Output

Hello World!

Contributing 💪

Please see CONTRIBUTING for details.

Examples 📗

Coming soon... 👷

Documentation 📗

Building 🔨

npm run build

Roadmap ⛅

Coming soon... 👷

Package Sidebar

Install

npm i @chientrm/es

Weekly Downloads

8

Version

0.1.39

License

MIT

Unpacked Size

48.8 kB

Total Files

28

Last publish

Collaborators

  • chientrm