
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

A lightweight command menu library that supercharges your web app's navigation and feature discoverability. It's framework-agnostic, headless, composable, <6kB, and has no runtime dependencies.
npm install kmenu
import { CommandCore } from "kmenu";
const command = new CommandCore({
onSelect: (option) => {
console.log("Selected:", option);
},
});
// Register options
command.registerOptions([
{ id: "1", label: "Home", keywords: ["main"] },
{ id: "2", label: "Search", keywords: ["find"] },
{ id: "3", label: "Settings" },
]);
// Open/close
command.open();
command.close();
command.toggle();
// Navigate
command.navigateDown();
command.navigateUp();
command.selectActive();
// Get DOM props
const inputProps = command.getInputProps();
const listProps = command.getListboxProps();
const optionProps = command.getOptionProps("1");
// Cleanup
command.destroy();
interface CommandCore<T = any> {
open(): void;
close(): void;
toggle(): void;
setInput(value: string): void;
registerOptions(options: CommandOption<T>[]): void;
setActiveByIndex(index: number): void;
navigateUp(): void;
navigateDown(): void;
selectActive(): void;
on(event: EventType, handler: EventHandler): Unsubscribe;
getState(): CommandState<T>;
destroy(): void;
}
interface CommandOption<T = any> {
id: string;
label: string;
keywords?: string[];
disabled?: boolean;
group?: string;
data?: T;
}
Cmd/Ctrl + K - Open menu↑ / ↓ - Navigate optionsEnter - Select optionEscape - Close menuimport { fuzzyFilter, simpleFilter } from "kmenu";
// Use built-in filters
const command = new CommandCore({
filter: fuzzyFilter,
});
// Or create custom filter
const customFilter = (options, query) => {
return options.filter((opt) =>
opt.label.toLowerCase().includes(query.toLowerCase())
);
};
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.

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

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.