任意新建一个js文件,只需一行代码:

console.dir(process);

保存该文件后执行,即可得到process变量的属性值列表:

 {
title: 'node',
version: 'v0.10.30',
moduleLoadList: ['Binding evals',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule assert',
'NativeModule util',
'NativeModule path',
'NativeModule module',
'NativeModule fs',
'Binding fs',
'Binding constants',
'NativeModule stream',
'NativeModule _stream_readable',
'NativeModule _stream_writable',
'NativeModule _stream_duplex',
'NativeModule _stream_transform',
'NativeModule _stream_passthrough',
'NativeModule console',
'Binding tty_wrap',
'NativeModule tty',
'NativeModule net',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'Binding cares_wrap',
'Binding signal_wrap'
],
versions: {
http_parser: '1.0',
node: '0.10.30',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.28',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1h'
},
arch: 'x64',
platform: 'darwin',
argv: ['node', '/Users/baidu/github/test/b.js'],
execArgv: [],
env: {
MANPATH: '/Users/baidu/.nvm/v0.10.30/share/man:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/man:/usr/local/share/man:/usr/share/man:/opt/X11/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man',
TERM_PROGRAM: 'Apple_Terminal',
TERM: 'xterm-256color',
SHELL: '/bin/bash',
TMPDIR: '/var/folders/x4/ph44fxq90_99lq3wb24b11sw0000gn/T/',
NVM_PATH: '/Users/baidu/.nvm/v0.10.30/lib/node',
Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.OV6WFhpAzS/Render',
TERM_PROGRAM_VERSION: '343.6',
TERM_SESSION_ID: 'E3666AE1-2E72-484B-978A-8D319AE91FA7',
SVN_EDITOR: 'sub',
NVM_DIR: '/Users/baidu/.nvm',
USER: 'baidu',
SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.6RgvKm8VMV/Listeners',
__CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34',
MAVEN_HOME: '/usr/local/Cellar/maven/3.2.2/libexec',
PATH: '/Users/baidu/.nvm/v0.10.30/bin:/Users/baidu/Documents/myDocument/fcinst/bin:/Applications/MAMP/bin/php/php5.5.14/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin:/usr/local/fcinst/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin',
NVM_NODEJS_ORG_MIRROR: 'http://nodejs.org/dist',
PWD: '/Users/baidu/github/test',
JAVA_HOME: '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home',
LANG: 'zh_CN.UTF-8',
NODE_PATH: '/Users/baidu/.nvm/v0.10.30/lib/node_modules',
XPC_FLAGS: '0x0',
XPC_SERVICE_NAME: '0',
HOME: '/Users/baidu',
SHLVL: '1',
LOGNAME: 'baidu',
MAVEN: '/usr/local/Cellar/maven/3.2.2/libexec/bin',
CLASSPATH: ':/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar',
NVM_BIN: '/Users/baidu/.nvm/v0.10.30/bin',
DISPLAY: '/private/tmp/com.apple.launchd.SVvs5bqsWe/org.macosforge.xquartz:0',
SECURITYSESSIONID: '186a5',
_: '/Users/baidu/.nvm/v0.10.30/bin/node',
OLDPWD: '/Users/baidu/github'
},
pid: 2719,
features: {
debug: false,
uv: true,
ipv6: true,
tls_npn: true,
tls_sni: true,
tls: true
},
_needImmediateCallback: false,
execPath: '/Users/baidu/.nvm/v0.10.30/bin/node',
debugPort: 5858,
_getActiveRequests: [Function],
_getActiveHandles: [Function],
_needTickCallback: [Function],
reallyExit: [Function],
abort: [Function],
chdir: [Function],
cwd: [Function],
umask: [Function],
getuid: [Function],
setuid: [Function],
setgid: [Function],
getgid: [Function],
getgroups: [Function],
setgroups: [Function],
initgroups: [Function],
_kill: [Function],
_debugProcess: [Function],
_debugPause: [Function],
_debugEnd: [Function],
hrtime: [Function],
dlopen: [Function],
uptime: [Function],
memoryUsage: [Function],
binding: [Function],
_usingDomains: [Function],
_tickInfoBox: {
'0': 0,
'1': 0,
'2': 0
},
_events: {
SIGWINCH: [Function]
},
domain: null,
_maxListeners: 10,
EventEmitter: {
[Function: EventEmitter] listenerCount: [Function]
},
_fatalException: [Function],
_exiting: false,
assert: [Function],
config: {
target_defaults: {
cflags: [],
default_configuration: 'Release',
defines: [],
include_dirs: [],
libraries: []
},
variables: {
clang: 1,
host_arch: 'x64',
node_install_npm: true,
node_prefix: '/',
node_shared_cares: false,
node_shared_http_parser: false,
node_shared_libuv: false,
node_shared_openssl: false,
node_shared_v8: false,
node_shared_zlib: false,
node_tag: '',
node_unsafe_optimizations: 0,
node_use_dtrace: true,
node_use_etw: false,
node_use_openssl: true,
node_use_perfctr: false,
python: '/usr/bin/python',
target_arch: 'x64',
v8_enable_gdbjit: 0,
v8_no_strict_aliasing: 1,
v8_use_snapshot: false,
want_separate_host_toolset: 0
}
},
nextTick: [Function: nextTick],
_currentTickHandler: [Function: _nextTick],
_nextDomainTick: [Function: _nextDomainTick],
_tickCallback: [Function: _tickCallback],
_tickDomainCallback: [Function: _tickDomainCallback],
_tickFromSpinner: [Function: _tickFromSpinner],
maxTickDepth: 1000,
stdout: [Getter],
stderr: [Getter],
stdin: [Getter],
openStdin: [Function],
exit: [Function],
kill: [Function],
addListener: [Function],
on: [Function],
removeListener: [Function],
mainModule: {
id: '.',
exports: {},
parent: null,
filename: '/Users/baidu/github/test/b.js',
loaded: false,
children: [],
paths: ['/Users/baidu/github/test/node_modules',
'/Users/baidu/github/node_modules',
'/Users/baidu/node_modules',
'/Users/node_modules',
'/node_modules'
]
}
}

node全局变量process属性值(mac环境)的更多相关文章

  1. 利用n 升级工具升级Node.js版本及在mac环境下的坑

    一.利用n 升级Node.js 最近在用NPM安装一个nodejs工具时发现,我的nodejs的版本有些旧了.这不是大问题,只要升级就可以了,当然,重新从nodejs.org最新版本是一种方法,但我想 ...

  2. spring练习,使用Eclipse搭建的Spring开发环境,使用set注入方式为Bean对象注入属性值并打印输出。

    相关 知识 >>> 相关 练习 >>> 实现要求: 使用Eclipse搭建的Spring开发环境,使用set注入方式为Bean对象注入属性值并打印输出.要求如下: ...

  3. mac环境下使用docker安装nginx

    前言 距离上一篇文章已经很长时间,近期实在事情太多了,也没来得及继续更新一些新的内容.现在开发使用的工作实在太多了,小编实在忍受不了windows那样卡机的状态,于是最近换了一个mac电脑,虽然做开发 ...

  4. const命令,全局变量的属性,变量的解构赋值

    const命令 1:声明常量(只在当前代码块中有效)---注意声明的常量可以是对象,但是常量储存的是对象的地址,地址声明后不可变,但是可以给常量对象添加属性 全局变量的属性 1:window和glob ...

  5. 【转】Android多进程总结一:生成多进程(android:process属性)

    前言 正常情况下,一个apk启动后只会运行在一个进程中,其进程名为apk的包名,所有的组件都会在这个进程中运行,以下为DDMS的进程截屏: com.biyou.multiprocess为进程名,也是a ...

  6. XML文件标签名一致,而属性值不同,如何遍历取值写法 摘录

    <EssentialFunctions>      <Qualification description="We Offer" source="AdDe ...

  7. 【小家Spring】老项目迁移问题:@ImportResource导入的xml配置里的Bean能够使用@PropertySource导入的属性值吗?

    #### 每篇一句 > 大师都是偏执的,偏执才能产生力量,妥协是没有力量的.你对全世界妥协了你就是空气.所以若没有偏见,哪来的大师呢 #### 相关阅读 [[小家Spring]详解Propert ...

  8. @ImportResource导入的xml配置里的Bean能够使用@PropertySource导入的属性值吗?

    每篇一句 大师都是偏执的,偏执才能产生力量,妥协是没有力量的.你对全世界妥协了你就是空气.所以若没有偏见,哪来的大师呢 相关阅读 [小家Spring]详解PropertyPlaceholderConf ...

  9. Xamarin Studio在Mac环境下的配置和Xamarin.iOS常用控件的示例

    看过好多帖子都是Win环境装XS,Mac只是个模拟器,讲解在Mac环境下如何配置Xamarin Studio很少,也是一点点找资料,东拼西凑才把Xamarin Studio装在Mac上跑起来,如下: ...

随机推荐

  1. 老男孩Linux运维期中架构

  2. boost split字符串

    boost split string , which is very convenience #include <string> #include <iostream> #in ...

  3. 套接字中的recv与send的注意事项

    recv() 特征* 如果连接的另一端断开连接,则recv立即返回空子串* recv是从接受缓冲区取出内容,当缓冲区为空则阻塞* recv如果一次接受不完缓冲区内容,下次会继续接收 send() 特征 ...

  4. BZOJ4837:[Lydsy1704月赛]LRU算法(双指针&模拟)

    Description 小Q同学在学习操作系统中内存管理的一种页面置换算法,LRU(LeastRecentlyUsed)算法. 为了帮助小Q同学理解这种算法,你需要在这道题中实现这种算法,接下来简要地 ...

  5. Uva12230Crossing Rivers (数学期望)

    问题: You live in a village but work in another village. You decided to follow the straight path betwe ...

  6. RabbitMQ消息队列———安装(一)

    一.RabbitMQ队列 不同进程间的通信,简称IPC.不同的进程间的通信,可以基于队列解决,将生产者和消费者进行解耦,中间的队列作为其桥梁.RabbitMQ是一个在AMQP基础上完整的,可复用的企业 ...

  7. Cache应用中的服务过载案例研究

    https://tech.meituan.com/avalanche-study.html

  8. 以gevent(协程) 方式跑uwsgi服务

    当你的系统存在一些IO或网络请求较久的操作时, 如果以默认的方式启动uwsgi服务, 那么如果这类请求过多的时候, 所以进程被卡死. uwsgi就无法再对后续请求做处理了. 这时可以用gevent的方 ...

  9. 申请apple开发人员账号的波折

    版权声明:本文为博主原创文章.未经博主同意不得转载. https://blog.csdn.net/xiebaochun/article/details/37578395 是的.po主要搞ios开发了, ...

  10. 什么是Spark(四)集群

    Driver,主要的职责是生成DAG以及生成物理执行计划(Physical Execution Plan):Application,Job以及Stage都是在这个组建中生成的: ClusterMast ...