Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Correct the documentation wrt module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 11, 2010
1 parent 35fa968 commit bfea7ce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions doc/api.markdown
Expand Up @@ -85,11 +85,6 @@ package a module as a directory.
paths onto it, or at startup with the `NODE_PATH` environmental
variable (which should be a list of paths, colon separated).

Use `process.mixin()` to include modules into the global namespace.

process.mixin(GLOBAL, require('./circle'), require('sys'));
puts('The area of a circle of radius 4 is ' + area(4));


## Buffers

Expand Down Expand Up @@ -319,8 +314,8 @@ The filename of the script being executed.
The dirname of the script being executed.

### module
A reference to the current module (of type `process.Module`). In particular
`module.exports` is the same as the `exports` object. See `src/process.js`
A reference to the current module (of type `require("module").Module`). In particular
`module.exports` is the same as the `exports` object. See `lib/module.js`
for more information.


Expand Down

0 comments on commit bfea7ce

Please sign in to comment.