@smallstack/evti

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i @smallstack/evti

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

753 kB

Total Files

8

Last publish

Collaborators

  • maxfriedmann