Ok so which is your best module pattern?i do as follow:/* jshint esversion: 6 */ const someLib = require('foo');(function() {const someFunction = () => { // do something }; module.exports = { someFunction: someFunction }; })();
Submitted March 17, 2017 at 07:16AM by jesusgn90
No comments:
Post a Comment