Socket
Socket
Sign inDemoInstall

min-dom

Package Overview
Dependencies
2
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    min-dom

A minimal dom utility toolbelt


Version published
Weekly downloads
60K
decreased by-35.6%
Maintainers
8
Install size
99.7 kB
Created
Weekly downloads
 

Changelog

Source

5.0.0

  • CHORE: turn into ES module
  • CHORE: drop UMD distribution
  • CHORE: do not inline stable external dependencies

Breaking Changes

  • This is an ES module only package now. Consume in modern browsers.
  • Dropped UMD distribution. Consume as an ES module

Readme

Source

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 bundle
$ gzip dist/index.js
$ du -b dist/*.gz
2351    index.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
  • 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

Keywords

FAQs

Last updated on 11 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc