erikvold
erikvold

Reputation: 16508

where's the documentation for NodeJS's system module

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.

Upvotes: 9

Views: 7983

Answers (1)

erikvold
erikvold

Reputation: 16508

Ah it looks like the module was renamed to be util so the documentation is at http://nodejs.org/docs/v0.4.2/api/all.html#util


Update: (merged from a subsequent answer from the same user)

The source is here: https://github.com/joyent/node/blob/master/lib/sys.js

But I'm hoping that there is actual documentation..

Upvotes: 17

Related Questions