setenv

1.0.3 • Public • Published

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

    sed 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

Package Sidebar

Install

npm i setenv

Weekly Downloads

22

Version

1.0.3

License

ISC

Last publish

Collaborators

  • x2