Skip to content

libdotenv is a C single-headerlibrary providing the ability to load values from a .env file into environment variables.

License

Notifications You must be signed in to change notification settings

briandowns/libdotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libdotenv

Build Status

libdotenv is a C library providing the ability to load values from a .env file into environment variables.

An example can be found in the examples directory.

Features

  • Ignores lines starting with whitespace
  • Ignores lines starting with whitespace #
  • Empty values become empty strings
  • Whitespace is removed from start and end of unquoted strings
  • Single quoted strings are replaced to double quoted
  • Quoted values maintain their whitespace

Contributing

Please feel free to open a PR!

License

libdotenv source code is available under the BSD 2 clause License.

Contact

@bdowns328

About

libdotenv is a C single-headerlibrary providing the ability to load values from a .env file into environment variables.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages