Todos los proyectos

dotenv-types

Un CLI que genera los tipos de TypeScript a partir de tus archivos .env.

Estrellas
6 estrellas
Creado
Último push
Lenguajes
  • TypeScript 52%
  • JavaScript 48%

README

Tomado del README del proyecto en GitHub (en inglés).

dotenv-types

dotenv-types is a CLI for generating .env typings for Typescript

Installation

Use the package manager npm to install dotenv-types.

$ npm i -g dotenv-types

You can also run the CLI with npx

$ npx dotenv-types

Usage

$ dotenv-types -h

Outputs:

      _       _                       _
   __| | ___ | |_ ___ _ ____   __    | |_ _   _ _ __   ___  ___
  / _` |/ _ \| __/ _ \ '_ \ \ / /____| __| | | | '_ \ / _ \/ __|
 | (_| | (_) | ||  __/ | | \ V /_____| |_| |_| | |_) |  __/\__ \
  \__,_|\___/ \__\___|_| |_|\_/       \__|\__, | .__/ \___||___/
                                          |___/|_|
Usage: dotenv-types[options]

Options:
  -V, --version              output the version number
  -F, --file <file>          Your .env file
  -f, --filename <filename>  Output filename
  -d, --directory <dir>      Output directory
  -h, --help                 display help for command

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.