0👍
I think your code should be module.exports.log = log
instead. At least according to this article.
Or if you want to use ES6 native exports: export {log}
.
Source:stackexchange.com
0👍
I think your code should be module.exports.log = log
instead. At least according to this article.
Or if you want to use ES6 native exports: export {log}
.