
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
A simple HTML menu module that creates interactive dropdown menus. It contains a minimum amount of styling so that you can customize it to your needs. See the example to see it in action.
npm install --save hut-modal
@import "hut-menu";
var menu = require('hut-menu');
<ul class="hut-tabs" id="menu">
<li><a href="#home">Home</a></li>
<li>
<a href="#">Docs</a>
<ul id="docs-menu">
<li><a href="#intro">Introduction</a></li>
<li><a href="#reference">Reference</a></li>
</ul>
</li>
</ul>
var menu = require('hut-menu');
var el = document.querySelector('#menu'),
m = menu(el);
// Open a submenu
m.open(document.querySelector('#docs-menu'));
// Close the currently open submenu
m.close();
menu(element)
Creates a new menu component and attaches the event handlers. It will return a
new Menu
object.
#current
The currently open submenu (the nested ul
element), or null
if no submenu
is open.
#open(submenu)
Opens a submenu. submenu
must be the nested ul
element to open. It will
also close any currently open submenu.
#close()
Closes any currenly open submenu.
0.1.0
FAQs
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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.