UNPKG

growthbook

Version:

The GrowthBook command-line interface (CLI) for working with the GrowthBook A/B testing, feature flagging, and experimentation platform

13 lines (12 loc) 461 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Environment = void 0; exports.Environment = { /** * Attempts to get the path to the home directory via the environment variable for each operating system. * @returns {string | null} path to home, or null if neither are defined */ getHomeDirectory() { return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE || null; }, };