Standard library
A small, explicit, Node-flavored surface. Every member is statically typed and
arity-checked before it lowers to native code.
console
| API | Type | Notes |
console.log(x) | any → void | Prints the value using its checked type. |
console.error(x) | any → void | Prints to standard error. |
Math
| API | Type |
Math.abs(n) | number → number |
Math.max(a, b) / Math.min(a, b) | (number, number) → number |
Math.sign(n) | number → int |
Math.clamp(n, lo, hi) | (number, number, number) → number |
Math.sqrt(n) | number → number |
String
| API | Type |
s.length | int |
s + t | string concatenation |
String.isEmpty(s) | string → bool |
String.contains(s, sub) | (string, string) → bool |
String.startsWith(s, prefix) | (string, string) → bool |
Array
| API | Type |
a[i] | element access (integer index) |
a.length | int |
Array.isEmpty(a) | T[] → bool |
Errors
| API | Notes |
Error("message") | Constructs an error value. |
throw e | Throws an Error value. |
try { … } catch (e) { … } finally { … } | e.message is the thrown message. |
Files & process
| API | Type | Notes |
fs.readFileSync(path, encoding?) | (string, string?) → string | UTF-8 text; empty string if unreadable. |
argsCount() | → int | Number of native arguments. |
arg(i) | int → string | Argument at index, or "" if absent. |
V1 is intentionally small and not full Node compatibility. The surface grows in
explicit, conformance-backed slices rather than inheriting an entire runtime.