New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winkblue

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winkblue

[![NPM Version](https://img.shields.io/npm/v/winkblue)](https://www.npmjs.com/package/winkblue)

  • 0.0.6
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-42.31%
Maintainers
1
Weekly downloads
 
Created
Source

winkblue

NPM Version

An DOM element detector which API compatible to sentinel-js

Installation

CDN

<script src="https://unpkg.com/winkblue@0.0.5/dist/winkblue.umd.js"></script>

CDN + ESM

<script type="importmap">
  {
    "imports": {
      "winkblue": "https://esm.sh/winkblue"
    }
  }
</script>

<script type="module">
  import winkblue from 'winkblue';
</script>

Usage

winkblue.on('.dynamic-load-components', (el) => {
  // do something on `el`
});

Why?

  1. sentinel-js can not find the display: none; elements.
  2. sentinel-js can not trigger multiple times if multiple selectors match the same element.
  3. sentinel-js can not work with multiple instances.

Limitation

  1. if you reuse the same element instance, the callback will not be triggered.

Playground

  1. simple usage
  2. hidden elements
  3. fizzbuzz
  4. multiple instance
  5. blink
  6. scattergun

LICENSE

ISC

FAQs

Package last updated on 09 Feb 2024

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