What is Min.js?

A super tiny JavaScript library useful to execute simple DOM querying and hooking event listeners. Thank you to its jQuery-like style, it feels very intuitive and simple to use. Its goal is to return the raw DOM node, which then can be manipulated using element.classList, element.innerHTML, and other methods. The following is a small example of how to use it:

$('p:first-child a').on('click', function (event) {
  // do something else

Obviously, it has some limits. For instance, you can’t turn off events.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License