JSPM

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

A minimal dom utility toolbelt

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

CI

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 node
  • 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
  • min-dash - minimal lodash inspired utility toolbelt
  • tiny-svg - tiny SVG utility toolbelt

License

MIT