Code Monkey home page Code Monkey logo

typeenv's Introduction

typeEnv

create a .d.ts file to your .env file

oclif npm GitHub

Gif

Without a Type definition   |    With a Type definition   |    Getting started   |    How to contribute   |    License

Without a Type definition

Without d.ts

With a Type definition

With d.ts

⚙️ Getting Started

Requirements

Instalation

$ yarn global add @eliasgcf/type-env
# or
$ npm install -g @eliasgcf/type-env

⚡ Usage

Path

create the env.d.ts inside another folder: --path/-p

$ typeEnv --path=src/my-types

File

change the default env file (.env): --file/-f

$ typeEnv --file .other.env

Show

just show the results and not create the d.ts file: --show/-s

$ typeEnv --show

Config

You can now check the settings for each environment, be it with typescript or javascript.

$ typeEnv -c ts
# or
$ typeEnv -c js

🤔 How to contribute

Make a fork of this repository

# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork EliasGcf/typeEnv

Follow the steps below

# Clone your fork
$ git clone your-fork-url && cd typeEnv

# Create a branch with your feature
$ git checkout -b my-feature

# Make the commit with your changes
$ git commit -m 'feat: My new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with 💜 by Elias Gabriel 👋  See my linkedin

typeenv's People

Contributors

danieldfc avatar eliasgcf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danieldfc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.