Skip to content

Instantly share code, notes, and snippets.

@eric-do
eric-do / node-exports-styles.js
Created April 30, 2019 17:42 — forked from kimmobrunfeldt/node-exports-styles.js
A few Node module export styles. 1 seems to be the most used and I prefer it
// Style 1
// Export all manually
// Good: Calling functions inside the module is convenient
// Bad: module.exports becomes verbose and it's tedious to add new functions
function a() {
b()
}