
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@mphosomo/simple_dropdown
Advanced tools
A simple, zero-dependency JavaScript module to easily initialize dropdowns. Built with HTML, CSS, and JavaScript, this package provides basic styling to simplify the setup process.
A simple, zero-dependency JavaScript module to easily initialize dropdowns. Built with HTML, CSS, and JavaScript, this package provides basic styling and functionality to simplify the setup process.
To install using npm:
npm install @mphosomo/simple_dropdown
To use the dropdown component, copy the following HTML structure(including class and id names):
<div class="dropdown-container">
<button type="button" id="dropdown-trigger">Trigger Dropdown</button>
<div class="dropdown">
<div class="dropdown-item">Item 1</div>
<div class="dropdown-item">Item 2</div>
<div class="dropdown-item">Item 3</div>
<!-- All the dropdown items required -->
</div>
</div>
Import the initializeDropdown function to use it in your project: (Pay attention to comments)
import { initializeDropdown } from "@mphosomo/simple_dropdown";
import "@mphosomo/simple_dropdown/style.css";
// To see if it works:
console.log(initializeDropdown()); // Should log 'initialized!'
You can easily customize the components css using the following:
#dropdown-trigger#dropdown-trigger:hover.dropdown-item.dropdown-item:hoverFAQs
A simple, zero-dependency JavaScript module to easily initialize dropdowns. Built with HTML, CSS, and JavaScript, this package provides basic styling to simplify the setup process.
The npm package @mphosomo/simple_dropdown receives a total of 1 weekly downloads. As such, @mphosomo/simple_dropdown popularity was classified as not popular.
We found that @mphosomo/simple_dropdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.