https://github.com/reactiverse/es4x
🚀 fast JavaScript 4 Eclipse Vert.x
https://github.com/reactiverse/es4x
graaljs graalvm hacktoberfest2021 java javascript language-support typescript typescript-definitions vertx
Last synced: 2 months ago
JSON representation
🚀 fast JavaScript 4 Eclipse Vert.x
- Host: GitHub
- URL: https://github.com/reactiverse/es4x
- Owner: reactiverse
- License: apache-2.0
- Created: 2018-03-14T14:30:19.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-05T17:43:06.000Z (3 months ago)
- Last Synced: 2025-05-01T00:04:58.892Z (3 months ago)
- Topics: graaljs, graalvm, hacktoberfest2021, java, javascript, language-support, typescript, typescript-definitions, vertx
- Language: Java
- Homepage: https://reactiverse.io/es4x/
- Size: 55.4 MB
- Stars: 889
- Watchers: 23
- Forks: 74
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - es4x
- vertx-awesome - EcmaScript - EcmaScript >=6 (JavaScript) support. (Language Support)
README
# ES4X
This is the EcmaScript (5.1+) language support for [Eclipse Vert.x](http://vertx.io)
[](https://github.com/reactiverse/es4x/actions/workflows/java.yml)
[](https://gitter.im/es4x/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://snyk.io/vuln/maven:io.reactiverse:es4x?utm_medium=referral&utm_source=badge&utm_campaign=snyk-widget)## Why?
[](https://www.youtube.com/watch?v=JUJ85k3aEg4)
JavaScript is fast, and this is the way to make it even faster 🚀🚀🚀
## Usage
Create a project:
```
# create a generic project
mkdir my-app
cd my-app
# init the project
npm init @es4x project
# add other dependencies...
npm install @vertx/unit --save-dev
npm install @vertx/core --save-prod
# will trigger the download
# of the java dependencies
npm install
```Create your `index.js`:
```js
///
// @ts-checkvertx
.createHttpServer()
.requestHandler(function (req) {
req.response().end("Hello!");
})
.listen(8080);console.log('Server listening at: http://localhost:8080/');
```and your `index.test.js`:
```js
import { TestSuite } from '@vertx/unit';const suite = TestSuite.create("the_test_suite");
suite.test("my_test_case", function (context) {
var s = "value";
context.assertEquals("value", s);
});suite.run();
``````bash
npm start
```Profit!
## Documentation
For more documentation please see [docs](./docs).