Skip to content

get the ENV variables for a user (current user or specific user)

Notifications You must be signed in to change notification settings

max-mapper/user-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

user-env

Useful for Electron/NW.js apps as GUI apps on OS X that don't inherit the environment of your current user

Inspired by fix-path but instead of modifying process.env.PATH this returns the entire process.ENV for the currently logged in user (process.env.USER by default) or a user you specify

usage

var userEnv = require('user-env')

// current user
var env = userEnv()

// specific user
var bobEnv = userEnv('bob')

About

get the ENV variables for a user (current user or specific user)

Resources

Stars

Watchers

Forks

Packages

No packages published