Properly and consistently parse ENV vars

This commit is contained in:
Leonid Logvinov
2018-03-13 15:19:31 +01:00
parent a0791455e1
commit a9db0e8ebe
4 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,11 @@
import * as _ from 'lodash';
import * as process from 'process';
export enum EnvVars {
SolidityCoverage = 'SOLIDITY_COVERAGE',
VerboseGanache = 'VERBOSE_GANACHE',
}
export const env = {
parseBoolean(key: string): boolean {
let isTrue: boolean;