Skip to content

Commit

Permalink
Update modules.md
Browse files Browse the repository at this point in the history
Signed-off-by: alabulei1 <[email protected]>
  • Loading branch information
alabulei1 authored Jan 4, 2024
1 parent 8ef708b commit 5b4ad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/develop/javascript/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In this article, we will use the [wasmedge-quickjs/modules](https://github.com/s
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.

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

## Add your own JavaScript modules
Expand Down

0 comments on commit 5b4ad60

Please sign in to comment.