🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!
I kept thinking about tree traversal, and how me didn't seem like quite the right name when used with selectors. This branch has multiple experiments for discussion. Here are the different ideas within:
me didn't make sense to me for meaning any single element (like when used with an argument.) I renamed it el (short for element, and I have no idea if I really like that name) and made the selector required. It still works for events and sugaring a passed in element. Other name ideas one (as a counterpart to any'),qs` (short for querySelector)
I added back me but now it's a property instead of a function (more similar to this), as it can never take any arguments. It only works inside a Githubissues.
Githubissues is a development platform for aggregating issues.
I kept thinking about tree traversal, and how
me
didn't seem like quite the right name when used with selectors. This branch has multiple experiments for discussion. Here are the different ideas within:me
didn't make sense to me for meaning any single element (like when used with an argument.) I renamed itel
(short for element, and I have no idea if I really like that name) and made the selector required. It still works for events and sugaring a passed in element. Other name ideasone
(as a counterpart toany'),
qs` (short for querySelector)me
but now it's a property instead of a function (more similar tothis
), as it can never take any arguments. It only works inside a Githubissues.