1.0.3 • Published 9 years ago

setenv v1.0.3

Weekly downloads
31
License
ISC
Repository
-
Last release
9 years ago

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 shellmodified 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