2.0.0 • Published 3 years ago

@technician/source-env v2.0.0

Weekly downloads
46
License
Apache-2.0
Repository
github
Last release
3 years ago

@technician/source-env

npm version npm downloads npm license

dependencies Build Status GitKraken

A config source for accessing environment variables.

This package provides the EnvConfigSource for use with the Technician config manager.

Technician

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.

License

Apache-2.0