In some place i see people using "module.exports" and in others "exports",what is the difference ?
Asked
Active
Viewed 45 times
0
-
You can find an answer in here [module.exports vs exports in Node.js](http://stackoverflow.com/a/7142924/4287861) – Ran Hassid Jul 26 '16 at 14:17
-
Possible duplicate http://stackoverflow.com/questions/7137397/module-exports-vs-exports-in-node-js – alejandromav Jul 26 '16 at 14:17
1 Answers
2
exports is assigned to module.exports by default. So, they are essentially the same. Unless you reassign exports.

andrunix
- 1,704
- 1
- 14
- 23