QuickJS Environment and Package Manager, also known as qjs-env.
Go to directory of your project, and execute:
curl -L "https://raw.githubusercontent.com/mtasic85/quickjs-env/main/qjs-env" -o qjs-env && chmod +x qjs-env
It will fetch QuikcJS source, compile and locally install its necessary executable and libraries.
./qjs-env init
Check if qjs
is successfully installed:
./qjs -h
./qjs-env add quickjs-cffi [email protected]:mtasic85/quickjs-cffi.git
Check if qjs-cffi
is successfully installed:
./qjs-cffi -h
./qjs-env add quickjs-fltk-cffi [email protected]:mtasic85/quickjs-fltk-cffi.git
./qjs-env add quickjs-uv-cffi [email protected]:mtasic85/quickjs-uv-cffi.git
cp .cache/quickjs-fltk-cffi/examples/fltk_hello.js ./fltk_hello.js
./qjs fltk_hello.js
cp .cache/quickjs-uv-cffi/examples/uv_timeout.js ./uv_timeout.js
./qjs uv_timeout.js
./qjs-env remove quickjs-uv-cffi
./qjs-env remove quickjs-fltk-cffi
./qjs-env remove quickjs-cffi
./qjs-env clean