1.0.5 • Published 2 years ago

generate-ts-from-env v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Simple script to generate TS file from .env config

Install

npm -i generate-ts-from-env

yarn add generate-ts-from-env

Usage

generate-ts-from-env -i ./inputFile -o ./outputFile

as a result you get and outputfile with an object including all your env variables with a corresponding type

type Env = {
    [key]: string // key from the env file
}

export const env: Env = process.env
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago