1.0.5 • Published 6 months ago

generate-ts-from-env v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months 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

6 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago