Create a gist now

Instantly share code, notes, and snippets.

@thiago-negri /foo.js Secret
Last active Oct 27, 2015

/*
File...: foo.js
Exports: bar, baz
Depends: spam, eggs
*/
;(function (namespace) {
'use strict'
namespace.foo = function (namespace) {
/* Dependencies */
var spam = namespace.spam
var eggs = namespace.eggs
function bar () {
}
function baz () {
}
/* Exports */
namespace.bar = bar
namespace.baz = baz
}
}((function () {
if (typeof window === 'undefined') {
return module.exports
} else {
return window
}
}())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment