File: JSModuleLoader.md

package info (click to toggle)
node-quickjs-emscripten 0.23.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,900 kB
  • sloc: ansic: 71,457; javascript: 7,638; makefile: 506; sh: 153
file content (26 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[quickjs-emscripten](../README.md) / [Exports](../modules.md) / JSModuleLoader

# Interface: JSModuleLoader

## Callable

### JSModuleLoader

▸ **JSModuleLoader**(`moduleName`, `context`): [`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)

Load module (sync)

#### Parameters

| Name | Type |
| :------ | :------ |
| `moduleName` | `string` |
| `context` | [`QuickJSContext`](../classes/QuickJSContext.md) |

#### Returns

[`JSModuleLoadResult`](../modules.md#jsmoduleloadresult)

#### Defined in

[ts/types.ts:82](https://github.com/justjake/quickjs-emscripten/blob/main/ts/types.ts#L82)