Get OS Env Var Insomnia Plugin
Insomnia Plugin to get Environment Variable from OS
Getting Started
Use this project to Get OS Env Variable inside Insomnia REST App.
Prerequisites
Insomnia: Debug APIs like a human, not a robot
NodeJS**: Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
** Node minimum version: 8.9.0
Installing
Open Insomnia APP installed on Mac, Windows or Linux and go to:
Application → Preferences → Plugins
Put the npm package name inside input text field and click Install Plugin
And then the plugin will be installed.
Enable the plugin by clicking on Enable? Switcher.
Using the Plugin
First, you need to create your Env Variables on your OS System. Create it accordingly with your system.
Windows
Open Windows Explorer by clicking CTRL + E.
Right Click on This Computer and then click on Properties.
Click on Advanced System Settings in the left menu.
In the Advanced Tab click on Environment Variables.
Put the name and the value for the variable you need.
Linux
Preferably create your Environment Variables on /etc/profile.
Edit /etc/profilea and set the code below
EXPORT VARIABLE_NAME="VARIABLE VALUE"
Save the file and reload the file running:
source /etc/profile
Built With
- NodeJS - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Authors
- Rodrigo Rocha - 7odri9o
License
This project is licensed under the MIT License - see the LICENSE.md file for details