declare-env
v1.0.1
Published
Add typings for .env files into an env.d.ts file.
Downloads
7
Readme
declare-env ⚙️
Generate an env.d.ts
file from your .env
file and import it in your project.
Installation
$ npm install -D declare-env # npm
$ yarn add --dev declare-env # yarn
$ pnpm add -D declare-env # pnpm
Usage
$ declare-env
This will generate a env.d.ts
file in your project root.
If tsconfig.json is present, generated file will be added to the files
array.