@technician/source-env
v2.0.0
Published
Access config from environment variables with Technician.
Downloads
4
Maintainers
Readme
@technician/source-env
A config source for accessing environment variables.
This package provides the EnvConfigSource
for use with the Technician config manager.
Installation
npm i @technician/source-env
This package is compatible with Node 10 LTS and up.
Basic Examples
EnvConfigSource
returns string
data by default.
import {Technician} from 'technician';
import {EnvConfigSource} from '@technician/source-env'
const technician = new Technician(new EnvConfigSource());
await technician.read('MY_ENV_VAR');
Contributions
Contributions and pull requests are always welcome. Please be sure your code passes all existing tests and linting.
Pull requests with full code coverage are strongly encouraged.