diff --git a/lazyload.js b/lazyload.js index 5adc8a4..b8aeadb 100644 --- a/lazyload.js +++ b/lazyload.js @@ -1,3 +1,6 @@ +// Filename: lazyload.js +// Timestamp: 2015.12.28-23:36:48 (last modified) + /*jslint browser: true, eqeqeq: true, bitwise: true, newcap: true, immed: true, regexp: false */ /** @@ -36,7 +39,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @static */ -LazyLoad = (function (doc) { +lazyload = module.exports = (function (doc) { // -- Private Variables ------------------------------------------------------ // User agent and feature test information. @@ -387,4 +390,4 @@ LazyLoad = (function (doc) { } }; -})(this.document); +})(this.document || {}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..960ef2f --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "lazyload", + "main": "lazyload", + "version": "2.0.4", + "license" : "MIT", + "readmeFilename": "README.md", + "description": "LazyLoad is a tiny (only 966 bytes minified and gzipped), dependency-free JavaScript utility that makes it super easy to load external JavaScript and CSS files on demand.", + + "repository": { + "type": "git", + "url": "https://github.com/rgrove/lazyload.git" + }, + "keywords": [ + "lazyload" + ] +}