Node University

SL 07: Node.js Modules with require and module.exports

Informações:

Synopsis

Importation patterns: require('./server.js') require('../configs.json') require('express') require('./routes') Module patterns Functions module.exports = ()=>{} Object module.exports = {} ES6/ECMAScript 6 Class class Button {} module.exports = Button About the Podcast Node University and its creator Azat Mardan tells you about advantages of using Node.js and why its such an absolutely, positively, amazingly awesome technology. Who is Azat? ¯_(ツ)_/¯ Well, he is the founder of Node University and... ⌨ Azat is in Top 1000 GitHub contributors list where Azat is number 239 right next to Paul Irish, Addy Osmani, Todd Motto and other famous developers: https://gist.github.com/paulmillr/265....