bare-env
Environment variable support for JavaScript
stable
Source
bare-env — Environment variable support for JavaScript.
npm i bare-envUsage
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
- Bare modules — the full
bare-*catalog. - Bare runtime API — the runtime these modules extend.