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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i setenv

Weekly Downloads

2

Version

1.0.3

License

ISC

Last publish

Collaborators

  • x2