Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

min-dom

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

min-dom

A minimal dom utility toolbelt

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
95K
decreased by-4.02%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 Oct 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc