Miq, the micro jQuery like library
Today I released miq, a tiny jQuery like library. Since the first release of jQuery a lot has changed: lots of array functions, promises, querySelectorAll, CSS transformations… and jQuery can only partially use them because the makers want to keep it backwards compatible.
You might not need jQuery
Now there are many developers who fiercely oppose using jQuery. There are two camps:
- Developers who think jQuery is too low level. They use frameworks like AngularJS or React.
So this powerful jQuery construct:
What? I’m not going to type that every time! Can’t I make a little library combining querySelectorAll with array functions? Yes, it was possible. I added some common jQuery functions and kept the library very small. Miq was born.
Miq even has some extra features jQuery doesn’t have. Miq Ajax returns native promises (You can use a promise polyfill for older browsers). The empty function $() returns a documentFragment, a lightweight DOM container. And it provides all the array functions, which is quite a lot, as you can see in this MDN Array article.
Miq supports both AMD and CommonJS for modular loading.