Crate node_shim

Crate node_shim 

Source
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§

DebugOptions
EnvironmentOptions
HostPort
InspectPublishUid
OptionsParser
ParseResult
PerIsolateOptions
PerProcessOptions

Enums§

OptionEnvvarSettings
OptionType

Functions§

parse_args
Main parsing function
parse_node_options_env_var
Parse NODE_OPTIONS environment variable