akameco / envrc-to-interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

envrc-to-interface

Build Status tested with jest styled with prettier All Contributors

your .envrc to TypeScript interface

Usage

$ cat .envrc
export TOKEN=dffsgdhfdsfgdfasdaf

$ npx envrc-to-interface .envrc

declare namespace NodeJS {
  interface ProcessEnv {
    readonly TOKEN: string;
  }
}

Run:

$ npx envrc-to-interface .envrc >> env.d.ts

Contributors ✨

Thanks goes to these wonderful people (emoji key):


akameco

💻 📖 🚇 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco

About

License:MIT License


Languages

Language:TypeScript 57.4%Language:JavaScript 42.6%