zepto
replace-jquery
zepto | replace-jquery | |
---|---|---|
1 | 9 | |
15,001 | 1,160 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 2 years ago | |
HTML | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zepto
-
Show HN: Auto-generate vanilla JavaScript alternatives for jQuery methods
Vanilla JS refers to Javascript that uses native browser methods instead of relying on a library. This is just replacing jQuery with another library constructed on the fly.
I don't see the point and there are already minimal and modern alternatives with the jQuery API like zepto and cash.
1) https://github.com/fabiospampinato/cash 2) https://github.com/madrobby/zepto
replace-jquery
-
jQuery to VanillaJs
This might be worth checking out: https://github.com/sachinchoolur/replace-jquery
- Auto-generate vanilla JS alternatives for jQuery methods
-
Show HN: Auto-generate vanilla JavaScript alternatives for jQuery methods
- It seems to have subtle bugs, like the way the events string is split makes so that double consecutive spaces in it (which can happen as a result of a typo) will result in listening to the empty string event. Basically: 'foo bar'.split ( ' ' ) => ['foo', '', 'bar'].
The `on` method we are using in Cash [1] is a lot more convoluted than that. On one hand it requires more bytes, but on the other the chances of it behaving exactly like jQuery's are much higher. In fact we can also run jQuery's test suite with Cash to spot issues.
Feel free to ping me if you are interested in joining forces.
[0]: https://github.com/fabiospampinato/cash
[1]: https://github.com/sachinchoolur/replace-jquery#on
[2]: https://github.com/fabiospampinato/cash/blob/master/src/even...
-
Hacker News top posts: Sep 6, 2021
Show HN: Auto-generate vanilla JavaScript alternatives for jQuery methods\ (0 comments)
- Automatically find jQuery methods from existing projects and generate vanilla js alternatives.
- Show HN: Auto generate vanilla JavaScript alternatives for jQuery methods
What are some alternatives?
cash - An absurdly small jQuery alternative for modern browsers.
jQuery - jQuery JavaScript Library
homebrew-x - My homebrew packages
closure-compiler - A JavaScript checker and optimizer.
postgres - Unmodified Postgres with some useful plugins
tiny-events.js - TinyEvents is a tiny event utility library for modern browsers(IE 11+). Supports jQuery-like syntax. Just 1 kb gzipped.
awesome-actions - A curated list of awesome actions to use on GitHub
todo-or-die - TODOs you cannot forget!