Skip to content
/ es Public

πŸ’« Yet another oversimplified scripting language that used in production πŸ’«

License

Notifications You must be signed in to change notification settings

chientrm/es

Folders and files

NameName
Last commit message
Last commit date
Jul 21, 2022
Jan 4, 2022
Jan 5, 2022
Jan 2, 2022
Dec 29, 2021
Dec 29, 2021
Dec 28, 2021
Feb 7, 2022
Jan 2, 2022
Dec 28, 2021
Dec 3, 2023
Dec 3, 2023

Repository files navigation

escript - πŸ™ a scripting language run on top of JavaScript πŸ™

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

Why escript:question:

πŸ‘‰ Zero learning curve πŸ˜‡

  • No predefined keywords
  • No features assumptions
  • Only binary operators are allowed
  • Everything except expressions and function invokes are ignored

πŸ‘‰ JavaScript compatible πŸ‘ͺ

  • 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... πŸ‘·