@@ -112,6 +112,8 @@ qjs -m example.js
112112
113113### Outher Examples
114114
115+ #### modules STD e OS
116+
115117Edit file: ** example.js**
116118``` js
117119import * as std from " std" ;
@@ -126,6 +128,32 @@ Execute
126128``` sh
127129qjs -m example.js
128130```
131+ -----------
132+
133+
134+ #### Get cmd args
135+
136+ Edit file: ** example.js**
137+ ``` js
138+ var func = (value ) => {
139+
140+ console .log ( scriptArgs[1 ] )
141+ print ( scriptArgs[2 ] );
142+ }
143+
144+ func (" name" )
145+ ```
146+ Execute
147+ ``` sh
148+ qjs -m example.js args1 arg2
149+ ```
150+ -----------
151+
152+
153+
154+
155+
156+
129157
130158-----------
131159
@@ -214,7 +242,7 @@ Generate file: **my_module.exe**
214242gcc -D_GNU_SOURCE -I./ -o my_module my_module_js.c -static -s -L./ -lquickjs -lm -ldl -lpthread
215243```
216244
217-
245+ -----------
218246
219247### References
220248| File | Repository |
@@ -223,6 +251,53 @@ gcc -D_GNU_SOURCE -I./ -o my_module my_module_js.c -static -s -L./ -lquickjs -lm
223251| Writing native modules in C for QuickJS engine | https://calbertts.medium.com/writing-native-modules-in-c-for-quickjs-engine-49043587f2e2 |
224252
225253
254+ -----------
255+
256+ ### Related Projects
257+
258+ txiki.js - Node modules
259+ https://github.com/saghul/txiki.js
260+
261+ quickjs-emscripten - Javascript/Typescript bindings for QuickJS, a modern Javascript interpreter, compiled to WebAssembly.
262+ https://github.com/justjake/quickjs-emscripten
263+
264+ quickjspp - QuickJS wrapper for C++.
265+ https://github.com/ftk/quickjspp
266+
267+ QuickJS-raylib - C Game engine
268+ https://github.com/sntg-p/QuickJS-raylib
269+
270+ qjs-glfw
271+ https://github.com/rsenn/qjs-glfw
272+
273+ quickjs-ffi
274+ https://github.com/shajunxing/quickjs-ffi
275+
276+ quickjs_dart
277+ https://pub.dev/documentation/quickjs_dart/latest/
278+
279+ Quick js flutter
280+ https://flutterawesome.com/a-quickjs-engine-for-flutter/
281+
282+ Quick js android
283+ https://developpaper.com/tutorial-on-using-quickjs-javascript-engine-in-android/
284+
285+ QuickJS-Pascal
286+ https://github.com/Coldzer0/QuickJS-Pascal
287+
288+ WasmEdge - extensible WebAssembly runtime for cloud native, edge, and decentralized applications.
289+ https://github.com/WasmEdge/WasmEdge
290+
291+ quickjs - Go bindings to QuickJS
292+ https://github.com/lithdew/quickjs
293+
294+ quickjs-rs - A Rust wrapper for QuickJS.
295+ https://github.com/theduke/quickjs-rs
296+
297+ Imgui and QuickJS
298+ https://github.com/KusStar/ABCDEFGui
299+
300+
226301-----------
227302
228303## License
0 commit comments