JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 127620
  • Score
    100M100P100Q159827F
  • License MIT

A minimal dom utility toolbelt

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

Build Status

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 attributes
  • classes - class name helper
  • clear - remove children from a node
  • closest - get the closest parent by selector; component-closest
  • delegate - event deletation support; delegate-events
  • domify - html to elements; domify
  • event - event binding; component-event
  • matches - selector match check; matches-selector
  • query - selector query support; component-query
  • remove - detach a node from its parent

License

MIT