dimejs
v0.0.1
Published
When a dollar is too much, use a `1.55 KB` jQuery subset.
Downloads
7
Readme
Dime
When a dollar is too much, use a 1.55 KB jQuery subset.
Yup, I'm still rocking the $() when I can.
Please don't hate me.
import { dime } from './dime.js'
const $ = dime.on, .attr, .css, .val, .remove, .append, .prepend
.addClass, .removeClass, .toggleClass, .hasClass
Where I found my insperation/stole some snippets:
- https://gist.github.com/paulirish/12fb951a8b893a454b32
- https://github.com/franciscop/umbrella
- https://github.com/kbrsh/paint
- https://github.com/kenwheeler/cash
Known issue: $(this) within scope. Pls halp
Cheers
