https://github.com/chientrm/es
:dizzy: Yet another oversimplified scripting language that used in production :dizzy:
https://github.com/chientrm/es
expression javascript nodejs scripting
Last synced: 9 months ago
JSON representation
:dizzy: Yet another oversimplified scripting language that used in production :dizzy:
- Host: GitHub
- URL: https://github.com/chientrm/es
- Owner: chientrm
- License: mit
- Created: 2021-12-16T15:45:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:50:26.000Z (over 1 year ago)
- Last Synced: 2024-11-15T20:28:58.865Z (over 1 year ago)
- Topics: expression, javascript, nodejs, scripting
- Language: JavaScript
- Homepage:
- Size: 864 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# escript - :pray: a scripting language run on top of JavaScript :pray:
[](https://github.com/chientrm/es/actions/workflows/ci.yml)
[](https://img.shields.io/github/commit-activity/m/chientrm/es)
[](https://www.codacy.com/gh/chientrm/es/dashboard?utm_source=github.com&utm_medium=referral&utm_content=chientrm/es&utm_campaign=Badge_Coverage)
[](https://github.com/trending/javascript)
[](https://www.codacy.com/gh/chientrm/es/dashboard?utm_source=github.com&utm_medium=referral&utm_content=chientrm/es&utm_campaign=Badge_Grade)
[](https://discord.gg/HMMtp3dTPh)
[](https://depfu.com/repos/github/chientrm/es)
[](https://github.com/chientrm/es/blob/main/package.json)
[](https://github.com/chientrm/es)
[](https://www.npmjs.com/package/@chientrm/es)
[](https://github.com/chientrm)
[](https://github.com/chientrm/es/issues)
[](https://github.com/chientrm/es/blob/main/LICENSE)
[](https://github.com/chientrm/es)
[](https://github.com/chientrm/es/graphs/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
```sh
npm install @chientrm/es
```
## Usage
:page_facing_up: index.js
```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
```js
log("Hello World!");
```
:tv: Output
```sh
Hello World!
```
## Contributing :muscle:
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Examples :green_book:
Coming soon... :construction_worker:
## [Documentation](docs/readme.md) :green_book:
## Building :hammer:
```
npm run build
```
## Roadmap :partly_sunny:
Coming soon... :construction_worker: