2.0.45 • Published 1 year ago

gitpod-env-per-project v2.0.45

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

gitpod-env-per-project

GitPod helper command for project-specific environment variables.

GitPod by default does not support variables with the same name but different scopes. E.g. setting a variable API_KEY for scope user/project1 and setting a variable API_KEY for scope user/project2 will lead to the first variable being deleted. But you often want to have project-specific variables with the same name.

This tool iterates all environment variables and replaces the ones with a project-specific prefix with their non-prefixed forms.

PROJECT1_API_KEY -> API_KEY

Install

# npm
$ npm install -g gitpod-env-per-project

# Yarn
$ yarn global add gitpod-env-per-project

Usage

The tool assumes that all project-specific variables are prefixed by PROJECT_, where PROJECT is the constant-case form of the package name.

Let's assume you have the following name in your package.json:

{
  "name: "@scope/project"
}

Calling gitpod-env-per-project returns the following string, similar to gp env:

PROJECT_FOO_BAR=
FOO_BAR="value"

When calling eval $(gitpod-env-per-project), it actually sets the variables in the environment.

Contribute

Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️

Support

Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

Thanks a lot for your support! ❤️

License

MIT License © Sebastian Landwehr

2.0.37

1 year ago

2.0.38

1 year ago

2.0.35

1 year ago

2.0.36

1 year ago

2.0.33

1 year ago

2.0.34

1 year ago

2.0.32

1 year ago

2.0.39

1 year ago

2.0.44

1 year ago

2.0.45

1 year ago

2.0.42

1 year ago

2.0.43

1 year ago

2.0.40

1 year ago

2.0.41

1 year ago

2.0.28

1 year ago

2.0.29

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

2.0.31

1 year ago

2.0.9

1 year ago

2.0.10

1 year ago

2.0.8

1 year ago

2.0.30

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

2.0.26

1 year ago

2.0.27

1 year ago

2.0.24

1 year ago

2.0.25

1 year ago

2.0.22

1 year ago

2.0.23

1 year ago

2.0.20

1 year ago

2.0.21

1 year ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago