-
Notifications
You must be signed in to change notification settings - Fork 1
Node.js Require Exports
Sébastien LUCAS edited this page Jan 17, 2016
·
4 revisions
1) Imagine that this line of code exists as the first line of code in greetings.js:
// greetings.js
var exports = module.exports = {};
But this line don't need to be added, as this reference is already made by node.js
One export per file or export an object with many properties, functions....
http://openmymind.net/2012/2/3/Node-Require-and-Exports/