tiny-events.js
replace-jquery
tiny-events.js | replace-jquery | |
---|---|---|
4 | 9 | |
22 | 1,160 | |
- | - | |
0.0 | 0.0 | |
almost 3 years ago | over 2 years ago | |
TypeScript | JavaScript | |
MIT License | 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.
tiny-events.js
-
Show HN: Auto-generate vanilla JavaScript alternatives for jQuery methods
Yes, I agree with you the events part needs to be improved and well documented. (It actually supports namespacing.) I fixed most of the things in https://github.com/sachinchoolur/tiny-events.js and need to make the changes here as well.
My intention was not to build another JavaScript utility library. I just wanted to make my JavaScript libraries jQuery independent.
- A tiny, jQuery-like event utility library for modern browsers
- A tiny event utility library for modern browsers(IE 11+). Just 1 KB
- Show HN: Tinyevents.js – A tiny event utility library
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?
zepto - Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API
cash - An absurdly small jQuery alternative for modern browsers.
ng-event-plugins - This is an Angular library for optimizing performance sensitive events and declarative preventDefault, stopPropagation and capture phase listeners.
homebrew-x - My homebrew packages
jQuery - jQuery JavaScript Library
postgres - Unmodified Postgres with some useful plugins
closure-compiler - A JavaScript checker and optimizer.
awesome-actions - A curated list of awesome actions to use on GitHub
todo-or-die - TODOs you cannot forget!