Skip to content

Instantly share code, notes, and snippets.

@tstone
Last active July 5, 2017 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstone/14ebcaf10093152f48c710a3ea07c325 to your computer and use it in GitHub Desktop.
Save tstone/14ebcaf10093152f48c710a3ea07c325 to your computer and use it in GitHub Desktop.
module.exports = {
A: {
hello: function() {
return 'hello';
}
}
}
var a = require('./a');
a.world = function(){
return 'world';
}
var a = require('./a');
console.log(a.world());
▶ node
> require('./import/b');
{}
> require('./import/c');
world
{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment