Cascadiq

Config Parser

project · Level 2 · 30 min

Description

Parse a config file (e.g. INI or env-style KEY=VALUE) and return a typed object. Support comments and optional env variable substitution.

Requirements

  • Parse key=value format
  • Ignore comment lines
  • Optional: substitute ${VAR} from environment

Constraints

Node or browser. One config format.

Deliverables

parse(pathOrString) -> object.

Tags

ToolingConfig