Package Exports
- min-dom
- min-dom/dist
- min-dom/dist/index.esm.js
- min-dom/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (min-dom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
min-dom
A minimal dom utility toolbelt. Library friendly and based on utilities provided by component.
Footprint
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
2003 min-dom.min.js.gz
Features
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 check; matches-selectorquery
- native selector query supportremove
- detach a node from its parent
Related
License
MIT