Standard Library
txiki.js includes a standard library with the following modules:
| Module | Description |
|---|---|
tjs:assert | Assertion utilities |
tjs:ffi | Foreign function interface |
tjs:getopts | Command-line option parsing |
tjs:hashing | Hashing functions |
tjs:ipaddr | IP address manipulation |
tjs:path | Path utilities |
tjs:posix-socket | Low-level POSIX socket API |
tjs:sqlite | SQLite database interface |
tjs:uuid | UUID generation |
tjs:wasi | WebAssembly System Interface |
See the API Reference for detailed documentation on each module.
Import them using the tjs: prefix:
import { test } from 'tjs:assert';
import { parse } from 'tjs:path';
import { Database } from 'tjs:sqlite';