Package Exports
- envk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (envk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
envk
This package is slimmer and less "config verbose" alterantive to the popular dotenv (https://www.npmjs.com/package/dotenv).
- it takes an environment variable declaring a path to an env file
- it parses the env file (single quotes, double quotes and comments supported)
- it assign the variables parsed to the
process.envglobal object
You can easily see what's happening into index.js: wysiwyg'est as possible.
Nothing more, nothing less.
Usage:
Easy as:
ENVK=file.env node -r envk index.jsTo debug imported env variables:
ENVK=file.env ENVK_DEBUG=1 node -r envk index.js