@sealsystems/setenv

0.2.4 • Public • Published

@sealsystems/setenv

CircleCI AppVeyor

Easily setting environment variables without the need to acces process.env

Installation

$ npm install @sealsystems/setenv

Quick start

First you need to add a reference to @sealsystems/setenv within your application.

const setenv = require('@sealsystems/setenv');

Setting a variables

Call the function to set a new environment variable or overwrite an existing one.

setenv (key, value)
  • key mandatory string with name of the environment variable
  • value value to set. Allowed data types are string, object, number, boolean. For all non string types their string representation is used. Objects are converted into JSON format.

Result value is true on success, false otherwise.

Example:

setenv('MYKEY', 'my value');

Running the build

To build this module use roboter.

$ bot

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @sealsystems/setenv

    Weekly Downloads

    0

    Version

    0.2.4

    License

    MIT

    Unpacked Size

    5.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • seal-mt
    • michaelscherer-seal
    • comgit
    • gel