$ gnpm install min-dom
A minimal dom utility toolbelt. Library friendly and based on utilities provided by component.
This library is tiny (< 2Kb
in size) and still exposes all fundamental utilities:
$ npm run distro
$ gzip dist/min-dom.min.js
$ du -b dist/*.gz
1675 min-dom.min.js.gz
The library exposes the following tiny dom helpers:
assignStyle
- add inline styles to a nodeattr
- get and set node attributesclasses
- class name helperclear
- remove children from a nodeclosest
- get the closest parent by selector;delegate
- event deletation support; delegate-eventsdomify
- html to elements; domifyevent
- event binding; component-eventmatches
- selector match checkquery
- native selector query supportremove
- detach a node from its parentMIT
Copyright 2013 - present © cnpmjs.org | Home |