How to use osenv.prompt:
GitHub: Mondego/pyreco
31 32 33 34 35 36 37 38 39 40
## osenv.user() The currently logged-in user. Calls `whoami` if not found. ## osenv.prompt() Either PS1 on unix, or PROMPT on Windows. ## osenv.tmpdir()
19
22
13
See more examples
How to use osenv.path:
GitHub: Mondego/pyreco
3 4 5 6 7 8 9 10 11 12
## Usage ```javascript var osenv = require('osenv') var path = osenv.path() var user = osenv.user() // etc. // Some things are not reliably in the env, and have a fallback command:
19
22
13
See more examples
How to use osenv.user:
GitHub: Mondego/pyreco
27 28 29 30 31 32 33 34 35 36
## osenv.hostname() The machine name. Calls `hostname` if not found. ## osenv.user() The currently logged-in user. Calls `whoami` if not found. ## osenv.prompt()
19
22
13
See more examples
How to use osenv.hostname:
GitHub: Mondego/pyreco
11 12 13 14 15 16 17 18 19 20
// Some things are not reliably in the env, and have a fallback command: var h = osenv.hostname(function (er, hostname) { h = hostname }) // This will still cause it to be memoized, so calling osenv.hostname() // is now an immediate operation. // You can always send a cb, which will get called in the nextTick // if it's been memoized, or wait for the fallback data if it wasn't
19
22
13
See more examples
How to use osenv.tmpdir:
GitHub: legoflow/legoflow
70 71 72 73 74 75 76 77 78
if (!stableFamily || (+stableFamily.minor % 2)) stableFamily = null else stableFamily = stableFamily.major + '.' + stableFamily.minor var defaults var temp = osenv.tmpdir() var home = osenv.home() var uidOrPid = process.getuid ? process.getuid() : process.pid
49
518
38
See more examples
How to use osenv.editor:
GitHub: legoflow/legoflow
133 134 135 136 137 138 139 140 141 142
color: process.env.NO_COLOR == null, depth: Infinity, description: true, dev: false, 'dry-run': false, editor: osenv.editor(), 'engine-strict': false, force: false, 'fetch-retries': 2,
49
518
38
See more examples
How to use osenv.shell:
GitHub: legoflow/legoflow
216 217 218 219 220 221 222 223 224 225
searchopts: '', searchexclude: null, searchlimit: 20, searchstaleness: 15 * 60, 'send-metrics': false, shell: osenv.shell(), shrinkwrap: true, 'sign-git-commit': false, 'sign-git-tag': false, 'sso-poll-frequency': 500,
49
518
38
See more examples
How to use osenv.home:
GitHub: legoflow/legoflow
71 72 73 74 75 76 77 78 79 80
else stableFamily = stableFamily.major + '.' + stableFamily.minor var defaults var temp = osenv.tmpdir() var home = osenv.home() var uidOrPid = process.getuid ? process.getuid() : process.pid if (home) process.env.HOME = home
49
518
38
See more examples