JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 896
  • Score
    100M100P100Q93438F
  • License MIT

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.env global 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.js

To debug imported env variables:

ENVK=file.env ENVK_DEBUG=1 node -r 'envk' index.js