setenv
v1.0.3
Published
utility module to permanently set system environment variables
Downloads
23
Readme
Installation
$ npm install setenv
Usage
var setenv = require('setenv')
setenv.set('TEST_ENV', 'test-value');
Functionality
on Windows: SetX command is used
on Linux: depending on the used shell one of the following files will be modified
| used shell | modified file | | ----------------- | -------------- | | bash: | ~/.bashrc | | zsh: | ~/.zshrc | | tcsh or csh: | ~/.login | | other: | ~/.profile |
Note: before any of the previous files is altered, a security copy will be created.
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test