asp-classic-emulator: Run ASP Classic on macOS, Linux and BSD

· databases systems devtools · Source ↗

TLDR

  • Node.js-based VBScript HTTP server that runs ASP Classic files on POSIX systems via npx asp-classic-emulator, no Windows or IIS required.

Key Takeaways

  • Hand-written Chevrotain parser chosen because existing VBScript parsers are abandoned or cover less than 60% of the grammar.
  • Full ASP object model (Response, Request, Session, Application, Server) plus ADO emulation with classic connection strings for SQLite, MySQL, and PostgreSQL.
  • --strict mode converts implicit VBScript type coercions into hard runtime errors; dev mode prints coercion warnings with file and line.
  • Phase 1 covers core VBScript control flow and types; Select Case, On Error Resume Next, and Class are planned for Phase 2.
  • Distributable as npx, global npm install, Node.js API, or Docker image with volume mount.

Hacker News Comment Review

  • No substantive HN discussion yet.

Original | Discuss on HN