You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
functionrequire(...){// ...function(module,exports){// Your module code hereexports=some_func;// re-assigns exports, exports is no longer// a shortcut, and nothing is exported.module.exports=some_func;// makes your module export 0}(module,module.exports);returnmodule;}
I am confused with the last line "return module". I think it should be "return module.exports" rather than "return module".
The text was updated successfully, but these errors were encountered:
This repo is now an archive, mostly where issues go to die. If you'd like this to get any attention, I'd recommend opening an issue where development is now: https://github.com/nodejs/node.
I'll close this for now as I don't think a doc change like this would be backportable to 0.x.
I found a little error while reading node document.
as the following link
https://nodejs.org/api/modules.html#modules_exports_alias
I am confused with the last line "return module". I think it should be "return module.exports" rather than "return module".
The text was updated successfully, but these errors were encountered: