@thenerdyhick/ts-secrets
v1.0.2
Published
Reads secrets from the environment or the file system (using docker secrets path conventions)
Downloads
80
Readme
Secret Loading Lib
Reads secrets from the environment or the file system (using docker secrets path conventions)
Usage
import { IntSecret } from '@thenerdyhick/secrets';
export const config = {
port: (new IntSecret({ name: 'PORT', default: null, required: true })).load()
}