Skip to content

Instantly share code, notes, and snippets.

@dantman
Last active August 29, 2015 14:21
Show Gist options
  • Save dantman/2cbf5e299d58b822d8db to your computer and use it in GitHub Desktop.
Save dantman/2cbf5e299d58b822d8db to your computer and use it in GitHub Desktop.
"use strict";
var contrivedFoo = require('./contrivedFoo');
contrivedFoo.foo();
"use strict";
exports.bar = bar;
var contrivedFoo = require('./contrivedFoo');
function bar() {
return contrivedFoo.contrived + 'bar';
}
"use strict";
exports.id = 0;
exports.contrived = 'foo';
exports.foo = foo;
var contrivedBar = require('./contrivedBar');
function foo() {
exports.id++;
return {
id: exports.id,
bar: contrivedBar.bar()
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment