{"_id":"zepto-component","_rev":"34-51b410d76b5fd0f81c56c6470aa92167","name":"zepto-component","description":"Zepto component","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"zepto-component","version":"1.0.0","description":"Zepto component","component":{"scripts":{"zepto":"zepto.js"}},"_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"_id":"zepto-component@1.0.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"ac3a7620eca3ed0fd08d3c927c2bade5a8dd1be5","tarball":"https://registry.npmjs.org/zepto-component/-/zepto-component-1.0.0.tgz","integrity":"sha512-Oc3qld0O+YvEeHXFMJhp9hQ7q48a9w7ZZ0ZH//SL4yUOt9WPlDLX7Nwz/BvML9ktCxqxABwfc+eYg0DeS8dlBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1o2NmPgKT4YURzquWcb8btpBDEiF/KdTiWxsJhmuikAiEA5PT83G4fmvUSQiC0/XcDvCJn49IyadJ1TaA4/gHVPfU="}]},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]}},"readme":"# Zepto.js – a minimalist JavaScript library\n\nZepto is a minimalist JavaScript library for modern browsers with a\nlargely jQuery-compatible API. If you use jQuery, you already know how to use Zepto.\n\nSee [zeptojs.com](http://zeptojs.com) for an extended introduction, downloads\nand documentation.\n\nZepto.js is licensed under the terms of the MIT License.\n\n## Building\n\n[![Build Status](https://secure.travis-ci.org/madrobby/zepto.png?branch=master)](http://travis-ci.org/madrobby/zepto)\n\nThe official site offers a download of the default distribution of Zepto. This\nis good for starting out. However, at some point you might want to add some\noptional modules and remove some of the default ones you don't need, to keep the\nsize at minimum. That's when you need to check out Zepto's source code and use\nthe build commands.\n\nYou will need ruby, RubyGems, and rake installed on your system.\n\n~~~ sh\n# dependencies:\n$ ruby -v\n$ gem -v\n$ rake -V\n\n# required to generate the minified version:\n$ gem install uglifier\n~~~\n\nBuild Zepto by running `rake`:\n\n~~~ sh\n$ rake\nOriginal version: 40.423k\nMinified: 18.776k\nMinified and gzipped: 7.033k, compression factor 5.747\n~~~\n\nThe resulting files are:\n\n1. `dist/zepto.js`\n2. `dist/zepto.min.js`\n\nTo include optional modules and remove default ones, use the `concat` task. In\nthis example, \"fx\" is removed, but \"data\" and \"selector\" are added:\n\n~~~\n$ rake concat[-fx:data:selector] dist\n~~~\n\n## Zepto modules\n\nZepto modules are individual files in the \"src/\" directory. You can also list\nthe available modules by running `rake modules`.\n\n<table>\n<thead><tr>\n  <th>module</th> <th>default</th> <th>description</th>\n</tr></thead>\n<tbody>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/polyfill.js#files\">polyfill</a></th>\n    <td>✔</td>\n    <td>\n      Provides String.prototype.trim and Array.prototype.reduce methods\n      if they are missing (required for iOS 3.x)\n    </td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/zepto.js#files\">zepto</a></th>\n    <td>✔</td>\n    <td>Core module; contains most methods</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/event.js#files\">event</a></th>\n    <td>✔</td>\n    <td>Event handling via <code>on()</code> &amp; <code>off()</code></td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/detect.js#files\">detect</a></th>\n    <td>✔</td>\n    <td>Provides <code>$.os</code> and <code>$.browser</code> information</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/fx.js#files\">fx</a></th>\n    <td>✔</td>\n    <td>The <code>animate()</code> method</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/fx_methods.js#files\">fx_methods</a></th>\n    <td></td>\n    <td>\n      Animated <code>show</code>, <code>hide</code>, <code>toggle</code>,\n      and <code>fade*()</code> methods.\n    </td>\n  </tr>\n  <tr>\n    <th><a\nhref=\"https://github.com/madrobby/zepto/blob/master/src/ajax.js#files\">ajax</a></th>\n    <td>✔</td>\n    <td>XMLHttpRequest and JSONP functionality</td>\n  </tr>\n  <tr>\n    <th><a\nhref=\"https://github.com/madrobby/zepto/blob/master/src/form.js#files\">form</a></th>\n    <td>✔</td>\n    <td>Serialize &amp; submit web forms</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/assets.js#files\">assets</a></th>\n    <td></td>\n    <td>\n      Experimental support for cleaning up iOS memory after removing\n      image elements from the DOM.\n    </td>\n  </tr>\n  <tr>\n    <th><a\nhref=\"https://github.com/madrobby/zepto/blob/master/src/data.js#files\">data</a></th>\n    <td></td>\n    <td>\n      A full-blown <code>data()</code> method, capable of storing arbitrary\n      objects in memory.\n    </td>\n  </tr>\n  <tr>\n    <th><a\nhref=\"https://github.com/madrobby/zepto/blob/master/src/selector.js#files\">selector</a></th>\n    <td></td>\n    <td>\n      Experimental <a href=\"http://api.jquery.com/category/selectors/jquery-selector-extensions/\">jQuery\n      CSS extensions</a> support for functionality such as <code>$('div:first')</code> and\n      <code>el.is(':visible')</code>.\n    </td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/touch.js#files\">touch</a></th>\n    <td></td>\n    <td>Fires tap– and swipe–related events on touch devices</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/gesture.js#files\">gesture</a></th>\n    <td></td>\n    <td>Fires pinch gesture events on touch devices</td>\n  </tr>\n  <tr>\n    <th><a href=\"https://github.com/madrobby/zepto/blob/master/src/stack.js#files\">stack</a></th>\n    <td></td>\n    <td>Provides <code>andSelf</code> &amp; <code>end()</code> chaining methods</td>\n  </tr>\n</tbody>\n</table>\n\n## Contributing\n\nGet in touch:\n\n* IRC channel: [#zepto on freenode.net](irc://irc.freenode.net/zepto)\n* @[zeptojs](http://twitter.com/zeptojs)\n\n### Report a bug\n\n1. Check if the bug is already fixed in the [master branch][master] since the\n   last release.\n2. Check [existing issues][issues]. Open a new one, including exact browser &\n   platform information. For better formatting of your report, see\n   [GitHub-flavored Markdown][mkd].\n\n### Running tests\n\nZepto test suite is in \"test/\\*.html\" files. Open the individual files in a web\nbrowser to run the tests. Files named with \"\\_functional\" are not automated\ntests, but require interaction. Automated tests are written using\n[Evidence.js][].\n\nDetailed test information such as specific failures is logged to the JavaScript\nconsole of your browser.\n\nIt's possible to run automated tests from the command-line in headless Webkit\nwith [PhantomJS][]:\n\n~~~ sh\n# install on Mac OS\n$ brew install phantomjs\n\n# run all tests\n$ rake test\n\n# run individual files\n$ script/test test/selector.html\n~~~\n\n### Code style guidelines\n\n* `function name() { }` for named functions\n* `function(){ }` for anonymous functions\n* No curly braces for single-line control flow statements such as `if` & friends\n* Don't write [semicolons that are optional][optional]\n* Put a single semicolon _before_ statements that start with `(` or `[`\n  (see above article as for why it's needed)\n* Use long, descriptive variable and method names\n* Use blank lines to separate \"paragraphs\" of code for readability\n* Use comments to describe non-obvious code behavior\n\n\n  [master]: https://github.com/madrobby/zepto/commits/master\n  [issues]: https://github.com/madrobby/zepto/issues\n  [mkd]: http://github.github.com/github-flavored-markdown/\n  [evidence.js]: https://github.com/tobie/Evidence\n  [optional]: http://mislav.uniqpath.com/2010/05/semicolons/\n  [phantomjs]: http://code.google.com/p/phantomjs/wiki/Installation\n","maintainers":[{"email":"shtylman@gmail.com","name":"defunctzombie"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"dominic@dbarnes.info","name":"dominicbarnes"},{"email":"nathan@tootallnate.net","name":"tootallnate"},{"email":"rauchg@gmail.com","name":"rauchg"},{"email":"rdsuarez@gmail.com","name":"retrofox"},{"email":"thecoreh@gmail.com","name":"coreh"},{"email":"forbes@lindesay.co.uk","name":"forbeslindesay"},{"email":"kelonyemitchel@gmail.com","name":"kelonye"},{"email":"mattmuelle@gmail.com","name":"mattmueller"},{"email":"yields@icloud.com","name":"yields"},{"email":"antshort@gmail.com","name":"anthonyshort"},{"email":"ian@ianstormtaylor.com","name":"ianstormtaylor"},{"email":"cristiandouce@gmail.com","name":"cristiandouce"},{"email":"arpad.borsos@googlemail.com","name":"swatinem"},{"email":"gstagas@gmail.com","name":"stagas"},{"email":"amjad.masad@gmail.com","name":"amasad"},{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"calvin@calv.info","name":"calvinfo"},{"email":"hello@blakeembrey.com","name":"blakeembrey"},{"email":"secoif@gmail.com","name":"timoxley"},{"email":"jonathanrichardong@gmail.com","name":"jonathanong"},{"email":"fabian.eichenberger@gmail.com","name":"queckezz"},{"email":"clint@anotherway.co.za","name":"clintwood"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"}],"time":{"modified":"2022-06-29T16:50:37.689Z","created":"2012-06-08T02:11:50.385Z","1.0.0":"2012-06-08T02:11:52.086Z"},"users":{},"readmeFilename":""}