Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shiftby-config

shiftby1MIT1.0.0

null

readme

@shiftby/config

Can read options from ENV variables or files.

Example:

const requiredOptions = ['SECRET_KEY'];
// File path can be provided in SECRET_KEY_FILE env
// Will fallback to SECRET_KEY env if SECRET_KEY_FILE is not set

const options = new Options(requiredOptions);
await options.initialize();

const key = options.get('SECRET_KEY');