How do we export two or more functions out of a .js file using module.exports in Node.js and require() at the other .js file. In that case, how do we access the functions imported by require() ?
Asked
Active
Viewed 55 times
1
-
Refer - https://stackoverflow.com/questions/5311334/what-is-the-purpose-of-node-js-module-exports-and-how-do-you-use-it – Urvish Kothari Jun 21 '17 at 14:44
-
Thanks , it cleared my doubt. – ANUBHAV UJJAWAL Jun 21 '17 at 14:47
-
I fount a simple example : https://wiki.workassis.com/node-js-export-and-import/ – Bikesh M Nov 14 '18 at 07:01