Skip to content

mtasic85/quickjs-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quickjs-env / qjs-env

QuickJS Environment and Package Manager, also known as qjs-env.

Install

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

Usage

Setup Local Environment

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

Install Package: quickjs-cffi

./qjs-env add quickjs-cffi [email protected]:mtasic85/quickjs-cffi.git

Check if qjs-cffi is successfully installed:

./qjs-cffi -h

Install Package: quickjs-fltk-cffi

./qjs-env add quickjs-fltk-cffi [email protected]:mtasic85/quickjs-fltk-cffi.git

Install Package: quickjs-uv-cffi

./qjs-env add quickjs-uv-cffi [email protected]:mtasic85/quickjs-uv-cffi.git

Run Local Program

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

Remove Packages

./qjs-env remove quickjs-uv-cffi
./qjs-env remove quickjs-fltk-cffi
./qjs-env remove quickjs-cffi

Clean Local Environment

./qjs-env clean

About

QuickJS Environment and Package Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages