This repo is archived. Use the MathWorks version instead from File Exchange or Github instead.
Reads the key,value pair from .env
file and adds them to the environment
variables. It is great for managing app settings during development and
in production using 12-factor principles.
This is early alpha software and the interfaces may change at any time.
Unit tests are written using the MATLAB unittest package.
Influences:
- Python: python-dotenv
- R: dotenv
- Node.js: dotenv
- Ruby: dotenv
Plan is to focus only on core functionality and then to follow the example of python-dotenv in the case of any conflicts.
- String interpolation using POSIX variable expansion
- Handle escaped quotes in values
- Multi-line values
- Better exceptions
- Default .env file name
- Find .env file by looking in parent directories
- Read multiple files and merge results
- Skip files that are missing (?)
- Improve unit tests, especially that:
- environment variables are modified correctly
- Improve documentation
- Add Contents.m file
- Package as MATLAB toolbox (
.mltbx
) - Initial version of HTML help
- Internal refactoring
- Remove support for inline comments and quoted names
- Add "cell" mapping type
- Minor improvements to unit tests
- Initial implementation