Tiny utility library for loading .env files.
Currently tested with: SBCL, Allegro, ECL
Calling load-env
loads the environment from the specified .env file. Use any of the available nicknames cl-dotenv
, .env
or dotenv
.
(.env:load-env (merge-pathnames "./path/.env"))
- Empty lines are skipped.
- Lines beginning with # are treated as comments
- Empty values are treated as empty strings, For example:
EMPTY=
- Malformed or duplicated entries will trigger a restart to let you decide on how to proceed with the parsing.
The package is not yet available through Quicklisp. (Issue)
Manual installation steps:
cd ~/quicklisp/local-projects/
git clone https://github.com/ollelauribostrom/cl-dotenv.git
(ql:quickload :cl-dotenv)
All contributions are very much welcome. Please get familiar with the contributing guide.
make install
: Install the packages cl-dotenv and cl-dotenv-test locally using Roswellmake test
: Run the tests using Provemake coverage
: Run the tests and generate a coverage reportmake sbcl
: Start SBCL and load cl-dotenv
- Olle Lauri Boström (ollebostr@gmail.com)
Licensed under the MIT License.