Expand description
Node.js CLI Argument Parser - Rust Implementation
This is a Rust implementation that matches the exact behavior of Node.js CLI argument parsing found in src/node_options.cc and related files.
Based on Node.js source code analysis of:
- src/node_options.cc (option definitions and parsing logic)
- src/node_options.h (option structures and types)
- src/node_options-inl.h (template implementation)
- src/node.cc (main execution flow)
Structs§
- Debug
Options - Environment
Options - Host
Port - Inspect
Publish Uid - Options
Parser - Parse
Result - PerIsolate
Options - PerProcess
Options - Translate
Options - Options for controlling translation behavior
- Translated
Args - Result of translating Node.js CLI args to Deno args
Enums§
Functions§
- is_
deno_ subcommand - Check if a string is a Deno subcommand
- parse_
args - Main parsing function
- parse_
node_ options_ env_ var - Parse NODE_OPTIONS environment variable
- translate_
to_ deno_ args - Translate parsed Node.js CLI arguments to Deno CLI arguments.
- wrap_
eval_ code - Wraps eval code for Node.js compatibility. Makes builtin modules available as global variables.