LogoPear Docs

bare-env

Environment variable support for JavaScript

stable

bare-env — Environment variable support for JavaScript.

npm i bare-env

Usage

const env = require('bare-env')

console.log(env.PATH)

API

Constants and variables

env: Env

Source

The process environment as a map of variable names to values. Reads, writes, delete, and key enumeration are forwarded to the underlying bare-os environment; assigned values must be strings, numbers, or booleans (stored as strings) — assigning any other type throws.

See also

On this page