Package Exports
- min-dom
- min-dom/lib/attr
- min-dom/lib/classes
- min-dom/lib/clear
- min-dom/lib/closest
- min-dom/lib/delegate
- min-dom/lib/domify
- min-dom/lib/event
- min-dom/lib/matches
- min-dom/lib/query
- min-dom/lib/remove
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
Tiny if exposing only the most basic utilities (event
, classes
, delegate
, matches
, query
).
$ browserify index.js --standalone=dom | \
bundle-collapser | \
uglifyjs | \
gzip > min-dom.min.js.gz
$ du min-dom.min.js.gz
4 min-dom.min.js.gz
Features
The library exposes the following tiny dom helpers:
attr
- get and set node attributesclasses
- class name helper; component-classesclear
- remove children from a nodeclosest
- get the closest parent by selector; component-closestdelegate
- event deletation support; component-delegatedomify
- html to elements; domifyevent
- event binding; component-eventmatches
- selector match check; component-matches-selectorquery
- selector query support; component-queryremove
- detach a node from its parent
License
MIT