Standard library

A small, explicit, Node-flavored surface. Every member is statically typed and arity-checked before it lowers to native code.

console

APITypeNotes
console.log(x)any → voidPrints the value using its checked type.
console.error(x)any → voidPrints to standard error.

Math

APIType
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

APIType
s.lengthint
s + tstring concatenation
String.isEmpty(s)string → bool
String.contains(s, sub)(string, string) → bool
String.startsWith(s, prefix)(string, string) → bool

Array

APIType
a[i]element access (integer index)
a.lengthint
Array.isEmpty(a)T[] → bool

Errors

APINotes
Error("message")Constructs an error value.
throw eThrows an Error value.
try { … } catch (e) { … } finally { … }e.message is the thrown message.

Files & process

APITypeNotes
fs.readFileSync(path, encoding?)(string, string?) → stringUTF-8 text; empty string if unreadable.
argsCount()→ intNumber of native arguments.
arg(i)int → stringArgument 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.