New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mutation-initialiser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mutation-initialiser

Initialise elements when inserted into the DOM using MutationObserver.

latest
Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

MutationInitialiser

This provides a wrapper around MutationObserver to initialise elements on a page as they are inserted into the document.

Alternatives are:

  • To simply receive a promise for when an element is loaded into the document, consider elementLoaded().
  • To simply handle an event for an element that does not exist yet, consider using event delegation.
  • For more complicated cases, use MutationObserver directly.
  • For building custom elements, consider Web Components.

API documentation is missing whilst this is under development. Feel free to browse the examples.

Keywords

mutationobserver

FAQs

Package last updated on 25 Aug 2023

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