Shannon_mu 9ea635a2dc 停车场 2 år sedan
..
dist 9ea635a2dc 停车场 2 år sedan
CHANGELOG.md 9ea635a2dc 停车场 2 år sedan
LICENSE 9ea635a2dc 停车场 2 år sedan
README.md 9ea635a2dc 停车场 2 år sedan
package.json 9ea635a2dc 停车场 2 år sedan

README.md

min-dom

Build Status

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:

$ browserify index.js \
    --standalone=dom \
    --plugin=tinyify | \
    gzip > min-dom.min.js.gz

$ du -b *.gz
1842    min-dom.min.js.gz

Features

The library exposes the following tiny dom helpers:

  • attr - get and set node attributes
  • classes - class name helper
  • clear - remove children from a node
  • closest - get the closest parent by selector;
  • delegate - event deletation support; delegate-events
  • domify - html to elements; domify
  • event - event binding; component-event
  • matches - selector match check; matches-selector
  • query - native selector query support
  • remove - detach a node from its parent

Related

  • min-dash - minimal lodash inspired utility toolbelt
  • tiny-svg - tiny SVG utility toolbelt

License

MIT