Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/narcello/changenv

:toolbox: Change env vars after build
https://github.com/narcello/changenv

bash build env environment environment-variables react-environnement

Last synced: 23 days ago
JSON representation

:toolbox: Change env vars after build

Awesome Lists containing this project

README

        

# :dizzy: changenv

Change environment vars after build

[![NPM Version](https://img.shields.io/npm/v/changenv?logo=npm)]()
[![NPM Downloads](https://img.shields.io/npm/dw/changenv?logo=npm)]()


## :dart: Motivation: *Dead Components*

Sometimes in project, with so specific architecture on build the env vars aren't change.


## :computer: Tech

Just bash :)

## :inbox_tray: Install

* Npm

```sh

npm i -g changenv

```

* Yarn

```sh

yarn add changenv

```

## :hammer: Usage

```bash

changenv

```

Changenv will looking for `.env.` file, read it, and for each var, change every match with `process.env.` on `` with their value.

## :zap: Examples

```bash

changenv production ./build

```

```bash

changenv staging ./lib

```

```bash

changenv development ./dist

```