Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "wasmoon", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A real lua VM with JS bindings made with webassembly", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -63,3 +63,3 @@ # Wasmoon | ||
```sh | ||
$: wasmoon [options] [files] [-- [args]] | ||
$: wasmoon [options] [file] [args] | ||
``` | ||
@@ -70,10 +70,21 @@ | ||
- `-l`: Include a file or directory | ||
- `-i`: Enter interactive mode after running the _files_ | ||
- `-i`: Enter interactive mode after running the files | ||
### Example: | ||
```sh | ||
$: wasmoon -i sum.lua 10 30 | ||
``` | ||
$: wasmoon -i sum.lua -- 10 30 | ||
And if you are in Unix, you can also use it as a script interpreter with [Shebang](<https://en.wikipedia.org/wiki/Shebang_(Unix)>): | ||
```lua | ||
#!/usr/bin/env wasmoon | ||
return arg[1] + arg[2] | ||
``` | ||
```sh | ||
$: ./sum.lua 10 30 | ||
``` | ||
## Fixing common errors on web environment | ||
@@ -80,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
914545
139