0.0.2 • Published 4 years ago

changenv v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

:dizzy: changenv

Change environment vars after build

NPM Version NPM Downloads

: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
npm i -g changenv
  • Yarn
yarn add changenv

:hammer: Usage

changenv <environment> <path_to_folder>

Changenv will looking for .env.<environment> file, read it, and for each var, change every match with process.env.<env_var_name> on <path_to_folder> with their value.

:zap: Examples

changenv production ./build
changenv staging ./lib
changenv development ./dist
0.0.2

4 years ago

0.0.1

4 years ago