哪来的的NodeJS的系统模块
问题描述:
我看到require("sys")
使用了很多的文件,我看到有a CommonJS spec for a system module但some code that I see使用像这样require("sys").error(e);
和错误模块没有出现在CommonJS的规范上市,所以我不知道在那里我可以找到NodeJS使用的系统模块的文档,因为I'm not seeing it in the NodeJS documentation。哪来的的NodeJS的系统模块
答
啊,它看起来像模块被更名为util
因此文档是http://nodejs.org/docs/v0.4.2/api/all.html#util
更新:(从后续的答案合并来自同一用户)
的来源是:https://github.com/joyent/node/blob/master/lib/sys.js
但我希望有实际的文件..
https://nodejs.org/api/util.html#util_util – ErikPhipps 2015-11-11 16:33:09