Skip to content

Instantly share code, notes, and snippets.

@richzw
Created February 23, 2016 04:18
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 richzw/05cb029ed7a81b019f9f to your computer and use it in GitHub Desktop.
Save richzw/05cb029ed7a81b019f9f to your computer and use it in GitHub Desktop.

//file.js

C = require('./C.js')

console.log(typeof C);

module.exports = function() {
    //var c = new C();
	return {c: new C()};
}

// C.js

module.exports = function () {
	return {val: true};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment