0.2.0 • Published 3 years ago

@smallstack/evti v0.2.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

Environment Variables to index.html - EVTI

Adds real environment variables to an index.html file, e.g. for passing dynamic env variables to node applications

Usage

evti javascriptVariableName=ENVIRONMENT_VARIABLE_NAME

Example

export API_URL=https://api.smallstack.com
evti apiUrl=API_URL

Getting started

  1. Install the package:
npm i -g @smallstack/evti
  1. Navigate to the folder where your index.html file is located
  2. Make sure, all environment variables are set
  3. Execute the CLI:
evti javascriptVariableName=ENVIRONMENT_VARIABLE_NAME

Screenshots

image

image

0.2.0

3 years ago

0.1.0

3 years ago