https://github.com/calbertts/qnode
Basic NodeJS APIs for the QuickJS Javascript Engine https://bellard.org/quickjs/
https://github.com/calbertts/qnode
Last synced: 10 months ago
JSON representation
Basic NodeJS APIs for the QuickJS Javascript Engine https://bellard.org/quickjs/
- Host: GitHub
- URL: https://github.com/calbertts/qnode
- Owner: calbertts
- License: mit
- Created: 2019-07-14T21:44:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T14:14:48.000Z (almost 7 years ago)
- Last Synced: 2025-07-30T15:28:56.316Z (11 months ago)
- Language: C
- Size: 880 KB
- Stars: 42
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic NodeJS APIs for the QuickJS Javascript Engine
This project is based on QuickJS Engine and add some of the most common methods or global objects used in NodeJS
# Getting started
This was tested in Linux (Ubuntu), install the following dependencies before to compile:
- `apt-get install build-essential`
- `apt-get install gcc-multilib`
Then run:
```
make
```
To use compiler:
```
./qjsc -o myBinary myCode.js
./myBinary
```
With modules:
```
./qjsc -m -o myBinary myCode.js
```
To use the interpreter:
```
./qjs
```
or
```
./qjs myCode.js
```
Find out more here https://bellard.org/quickjs/
# What's new here?
## Console global object
- `console.error(...)`
- `console.warn(...)`
## Process global object
- `process.platform`
- `process.cwd()`
- `process.argv`
- `process.EOL`
## Path global object
- `path.basename(...)`