Skip to content

Commit c319f2e

Browse files
committed
Update typedoc and export doc for quickjs modules
1 parent 6bb30c0 commit c319f2e

File tree

6 files changed

+115
-285
lines changed

6 files changed

+115
-285
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"devDependencies": {
55
"typescript": "5.6.2",
6-
"typedoc": "0.26.7",
7-
"typedoc-plugin-markdown": "4.2.9",
8-
"typedoc-plugin-missing-exports": "3.0.0"
6+
"typedoc": "0.27.6",
7+
"typedoc-plugin-markdown": "4.4.1",
8+
"typedoc-plugin-missing-exports": "3.1.0"
99
}
1010
}
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# QuickJS Modules
2+
3+
Here is the reference of the modules available in our engine.
4+
5+
This documentation is auto-generated from the Typescript typing ([`@caido/quickjs-types`](https://www.npmjs.com/package/@caido/quickjs-types)) which is the source of truth.
6+
7+
Some elements are similar to `Node.JS`, but some imports will be different and start with `caido:`.
8+
9+
## Modules
10+
11+
| Module | Description | Import | Global |
12+
| -------------------------------------- | ------------------------ | ------------------ | ------ |
13+
| [url](extra/url.md) | URL utilities | N/A | ✔︎ |
14+
| [abort](llrt/abort.md) | Abort signaling | N/A | ✔︎ |
15+
| [buffer](llrt/buffer.md) | Buffers | `buffer` | ✔︎ |
16+
| [child_process](llrt/child_process.md) | Process spawning | `child_process` ||
17+
| [console](extra/console.md) | Console logging | N/A | ✔︎ |
18+
| [crypto](llrt/crypto.md) | Cryptographic primitives | `crypto` ||
19+
| [dom-events](llrt/dom-events.md) | Events | N/A | ✔︎ |
20+
| [fs](llrt/fs/index.md) | File system | `fs`, `fs/promise` ||
21+
| [http](caido/http.md) | Fetch implementation | `caido:http` ||
22+
| [globals](llrt/globals/index.md) | Global classes | N/A | ✔︎ |
23+
| [net](llrt/net.md) | Sockets | `net` ||
24+
| [os](extra/os.md) | OS information | `os` ||
25+
| [path](llrt/path/index.md) | Path transformation | `path` ||
26+
| [process](llrt/process.md) | Process information | `process` | ✔︎ |
27+
| [sqlite](extra/sqlite.md) | SQlite access | `sqlite` ||
28+
| [stream](llrt/stream.md) | Streams (basic) | `stream` | ✔︎ |
29+
| [timers](extra/timers.md) | Timers | N/A | ✔︎ |

packages/quickjs-types/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"src/*"
1010
],
1111
"scripts": {
12+
"documentation": "typedoc",
1213
"typing": "./scripts/typing.sh"
1314
}
1415
}

packages/quickjs-types/typedoc.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": ["../../typedoc.base.json"],
3+
"entryPoints": [
4+
"src/caido/http.d.ts",
5+
"src/extra/console.d.ts",
6+
"src/extra/os.d.ts",
7+
"src/extra/sqlite.d.ts",
8+
"src/extra/timers.d.ts",
9+
"src/extra/url.d.ts",
10+
"src/llrt/abort.d.ts",
11+
"src/llrt/buffer.d.ts",
12+
"src/llrt/child_process.d.ts",
13+
"src/llrt/crypto.d.ts",
14+
"src/llrt/dom-events.d.ts",
15+
"src/llrt/fs.d.ts",
16+
"src/llrt/globals.d.ts",
17+
"src/llrt/net.d.ts",
18+
"src/llrt/path.d.ts",
19+
"src/llrt/process.d.ts",
20+
"src/llrt/stream.d.ts"
21+
],
22+
"externalPattern": ["**/node_modules/typescript/**"],
23+
"theme": "override"
24+
}

0 commit comments

Comments
 (0)