哪里是NodeJS系统模块的文档 [英] where's the documentation for NodeJS's system module
问题描述
我看到 require(sys)
使用了很多,我看到有系统模块的CommonJS规范但我看到的一些代码使用像这样的模块 require(sys)。error(e);
并且错误确实如此似乎没有在CommonJS规范中列出,所以我想知道在哪里可以找到NodeJS使用的系统模块的文档,因为我在NodeJS文档中没有看到它。
I see require("sys")
used a lot, and I see that there is a CommonJS spec for a system module but some code that I see uses the module like so require("sys").error(e);
and error does not appear to be listed in the CommonJS spec, so I'm wondering where I can find the documentation for the system module used by NodeJS, since I'm not seeing it in the NodeJS documentation.
推荐答案
<看起来模块被重命名为 util
,所以文档位于 http://nodejs.org/docs/v0.4.2/api/all.html#util
更新: (从子项目合并)来自同一用户的回答)
来源在这里: https://github.com/joyent/node/blob/master/lib/sys.js
但是我希望有实际的文件..
But I'm hoping that there is actual documentation..
这篇关于哪里是NodeJS系统模块的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!