Skip to content

Instantly share code, notes, and snippets.

View gatsbyz's full-sized avatar
💭
sup dawg

Jesse Lee gatsbyz

💭
sup dawg
View GitHub Profile
@gatsbyz
gatsbyz / node-exports-styles.js
Created June 6, 2018 14:48 — 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()
}
@gatsbyz
gatsbyz / node-exports-styles.js
Created June 6, 2018 14:48 — 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()
}