Standard Library
The standard library provides native and script-based APIs for general system functions. Import them with use <name>.
Standard Modules
| Module | Scope & Usage |
|---|---|
| assert | Runtime contract assertions with type and truthiness checks. |
| bytes | Byte array creation, conversion (hex, integer, string), fill, concat, and comparison. |
| collections | Stack, Queue, Deque, Map, Set, LinkedList, and PriorityQueue data structures. |
| crypto | SHA-256 hashing, Base64 encode/decode, AES-256 encryption/decryption. |
| datetime | Unix timestamps, Date class with formatting/arithmetic/comparison, execution measurement. |
| dir | Directory create/delete (recursive), listing, CWD, glob matching, and tree traversal. |
| env | Environment variable get/set/delete with fallback support. |
| file | File read/write/append, binary I/O, copy/move/rename, symlinks, stat/chmod. |
| http | HTTP client (GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS) and server. |
| json | JSON parse, stringify, pretty-print, and validation. |
| lang | Runtime introspection (version, memory, GC), panic, disassembler, arity, safeRun, std lib queries. |
| math | Constants (PI, E, TAU), trig/inverse/hyperbolic, logs, rounding, statistics. |
| net | TCP/UDP client/server classes, raw Socket, DNS resolution, URL parsing. |
| os | Platform detection, system info (CPU/memory), user/temp dir, PATH lookup. |
| path | Path join/resolve/normalize, dirname/basename/extname, parse/format, security check. |
| process | PID, exit, kill, CWD, command execution (exec/spawn), CLI args. |
| random | Random int/float/bool, alphanumeric strings, byte arrays, shuffle, and choice. |
| regex | Pattern compilation with flags, search/findAll/fullMatch, substitution, and split. |
| thread | Process-based threads with message passing (send/receive JSON), pools, and timeouts. |
| uuid | UUID v4 generation and format validation. |