0.0.1 • Published 9 years ago

commonjs-zepto v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

This is a fork based on madrobby/zepto.

npm install --save commonjs-zepto
$ = require('commonjs-zepto').$
Zepto = require('commonjs-zepto').Zepto
$ === Zepto // true

How I made this:

git rm *json zepto.min.js Makefile
npm init
subl zepto.js
subl README.md
git diff zepto.js
-
-window.Zepto = Zepto
-'$' in window || (window.$ = Zepto)
-
-
-
+// @@ original loader
+// window.Zepto = Zepto
+// '$' in window || (window.$ = Zepto)
+// @@ modified by shinygang
+module.exports.$ = Zepto;
+module.exports.Zepto = Zepto;
+// @@ modifications end