Skip to content

Instantly share code, notes, and snippets.

Avatar
🌀
Software developer @ Elastic working on Kibana. Previously @ NodeSource, IBM.

Patrick Mueller pmuellr

🌀
Software developer @ Elastic working on Kibana. Previously @ NodeSource, IBM.
View GitHub Profile
View gist:702856
// in foo.js:
module['exports'] = function() {
console.log('foo');
}
// in your repl:
node> foo = require('./foo');
[Function]
node> foo()
foo