Skip to content

@ctroenv/node v1.1.0

Choose a tag to compare

@ctrotech-tutor ctrotech-tutor released this 17 Jun 09:04
· 7 commits to main since this release

What's Changed

  • parseEnvFile(): complete rewrite with new capabilities:
    • $VAR and ${VAR} interpolation (references earlier vars and process.env)
    • $$ escaping for literal dollar signs
    • Multiline values with trailing backslash (\)
    • Inline comments (KEY=value # comment)
    • export KEY=value prefix support
    • Escaped quotes inside quoted values (\" and \')
    • Exported from @ctroenv/node public API
  • 15 new unit tests for all parseEnvFile features
  • Docs: updated README

Full Changelog: node-v1.0.3...node-v1.1.0