Created
March 15, 2017 19:29
-
-
Save erikologic/c8beafabe00ef3c3406a0613664d6522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//file substack.js | |
module.exports = function() { | |
console.log('main entry point'); | |
}; | |
module.exports.details = function() { | |
console.log('more detailed functionality'); | |
}; | |
module.exports.details.all = function() { | |
console.log('the complete truth'); | |
}; | |
// file substackCaller.js | |
var substack = require('./substack'); | |
substack(); | |
substack.details(); | |
substack.details.all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment