Skip to content

lulzhipsters/dollarenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

DollarEnv ($env) aims to provide easy import of dotenv (.env) files for powershell in the same way many other languages support them, most famously, nodejs

Supported format

These are explicitly supported. Other behaviours are undefined

Keys

Can contain

  • Upper and lower case characters
  • Alphanumeric characters
  • Underscores

Cannot contain

  • Spaces
  • Line breaks
  • #

Values

Supports quoting using "

When quoted, can contain other characters, such as

  • \
  • #
  • newlines
  • whitespace

When not quoted, values can only contain non-special characters.

Intended future support

  • Search directory heirarchy for dotenv to import
  • Override existing env var only when -Override flag provided
  • Variable Expansion (see dotenv-expand)