Skip to content

Commit 637640f

Browse files
alabulei1kelvinparmar
authored andcommitted
Update modules.md
Signed-off-by: alabulei1 <vivian.xiage@gmail.com> Signed-off-by: kelvin <pkelvin123456789@gmail.com>
1 parent e270812 commit 637640f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/develop/javascript/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this article, we will use the [wasmedge-quickjs/modules](https://github.com/s
1717
The modules system collects JavaScript files in the `modules` directory in the WasmEdge QuickJS distribution. To use the JavaScript functions and APIs defined in those modules, you need to map this directory to the `/modules` directory inside the WasmEdge Runtime instance. The following example shows how to do this on the WasmEdge CLI. You can do this with any of the host language SDKs that support the embedded use of WasmEdge.
1818

1919
```bash
20-
wasmedge --dir /host/os/path/to/modules:/modules wasmedge_quickjs.wasm example_js/hello.js WasmEdge Runtime
20+
wasmedge --dir /modules:/host/os/path/to/modules wasmedge_quickjs.wasm example_js/hello.js WasmEdge Runtime
2121
```
2222

2323
## Add your own JavaScript modules

0 commit comments

Comments
 (0)