A Really Fast, Stupid And Samll QuickJs Runtime
git clone https://github.com/Userfive5/Real.js
cd Real.js
gcc main.c -o main -lquickjs -lm -ldl -lcurl -lSDL2
git clone https://github.com/bellard/quickjs && cd quickjs && make
- After Done execute
make install
to install the static library - to compile to shared library to make building Real.js faster:
mkdir shared && cp *.o shared/
cd shared && gcc *.c -o libquickjs.so -shared
- then install with :
cp libquickjs.so /use/lib/
console.log
console.assert (with support for functions)
console.prompt
console.print
console.getpass
only fetch with no Utils
right now just read
getenv ,setenv, environ , clearenv, exit, popen (Read-Only )
Empty Right Now
Have No Files Import Right Now
Have require method to get module.exports from a file
This Is Just A Simple Project That I Worked On when I wanted to learn embedding JavaScript in c with quickjs So this just got to me and build it And I Will Really Work on To become a project that worth it!
See Something Awesome : https://github.com/saghul/txiki.js