Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4502699
README.txt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
932 B
Referenced Files
None
Subscribers
None
README.txt
View Options
ANT - Ant sized JavaScript Runtime
===================================
A minimal embedded JavaScript engine with async/await, promises, modules,
and built-in APIs for HTTP servers, timers, crypto, and JSON.
BUILD:
meson setup build && meson compile -C build
RUN:
./build/ant script.js
EXAMPLE:
See tests/server/server.cjs for a good server example using Ant.serve()
with Radix3 routing, parameter handling, and various response types.
MODULES:
- Ant.serve() - HTTP server (mongoose)
- Ant.require() - CommonJS module loading
- Timers - setTimeout, setInterval, queueMicrotask
- fetch() - HTTP client (curl)
- crypto.* - Cryptography (libsodium)
- JSON.* - JSON parsing
- console.* - Logging
FEATURES:
- Async/await and Promises
- ES6+ syntax (arrow functions, classes, template literals)
- Signal handlers (SIGINT, SIGTERM, etc.)
- Embedded garbage collector
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 9:12 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
531172
Default Alt Text
README.txt (932 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment