哪里是NodeJS系统模块的文档 [英] where's the documentation for NodeJS's system module

查看:69
本文介绍了哪里是NodeJS系统模块的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆