QuickJS Modules
Here is the reference of the modules available in our engine.
This documentation is auto-generated from the Typescript typing (@caido/quickjs-types) which is the source of truth.
Some elements are similar to Node.JS, but some imports will be different and start with caido:.
Modules
| Module | Description | Import | Global |
|---|---|---|---|
| abort | Abort signaling | N/A | ✔︎ |
| buffer | Buffers | buffer | ✔︎ |
| child_process | Process spawning | child_process | ✘ |
| console | Console logging | N/A | ✔︎ |
| crypto | Cryptographic primitives | crypto | ✘ |
| dom-events | Event Listeners | N/A | ✔︎ |
| dns | DNS | dns | ✘ |
| events | Event Emitter | events | ✘ |
| fs | File system | fs, fs/promise | ✘ |
| http | Fetch implementation | caido:http | ✘ |
| https | HTTPS | https | ✘ |
| globals | Global classes | N/A | ✔︎ |
| net | Sockets | net | ✘ |
| os | OS information | os | ✘ |
| path | Path transformation | path | ✘ |
| sqlite | SQlite access | sqlite | ✘ |
| stream | Streams (basic) | stream | ✔︎ |
| stream/web | Streams Web | stream/web | ✘ |
| string_decoder | String Decoder | string_decoder | ✘ |
| timers | Timers | N/A | ✔︎ |
| url | URL utilities | url | ✔︎ |
