Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@springernature/global-popup
Advanced tools
Click a trigger element to build and display a popup. Popups are built from existing html in the DOM and require it to be there prior to initialisation.
Popups are absolutely positioned either above or below the trigger, based on a calculation of space in the viewport. Defaults to above.
There are two approaches for using Global Popup:
import {popup} from 'global-popup/js';
popup();
<span data-popup data-popup-target="popupContent1">Popup trigger</span>
<div id="popupContent1">
<p>Some popup text</p>
</div>
Two data attribute are required:
Data attribute | Type | Description |
---|---|---|
data-popup | Boolean | This is the popup trigger i.e. clicking this will open a popup |
data-popup-target | String | This is the id of the element in the DOM that Global Popup will use to build the popup contents |
import {Popup} from 'global-popup/js/popup';
const trigger = document.querySelector('span');
new Popup(trigger, 'popupContent1');
<span>Popup trigger</span>
<div id="popupContent1">
<p>Some popup text</p>
</div>
FAQs
Builds and styles a popup that can be opened and closed
The npm package @springernature/global-popup receives a total of 3,589 weekly downloads. As such, @springernature/global-popup popularity was classified as popular.
We found that @springernature/global-popup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.