
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
chrome-badge
Advanced tools
Helper for displaying badges in chrome.action API.
You can install this library using npm:
npm install chrome-badge
setSets the text color and background color for badge of the action. The badge is displayed on top of the icon.
import { Badge } from "chrome-badge";
const text = "999";
const backgroundColor = "red";
const textColor = "white";
Badge.set({ text, textColor, backgroundColor });
getGets the badge text of the action. If no tab is specified, the non-tab-specific badge text is returned.
import { Alarm } from "chrome-alarms";
const badge = await Badge.get();
console.log(badge);
// Output:
// Object{
// backgroundColor: Array(4) [255, 0, 0, 255],
// text: "999",
// textColor: Array(4) [255, 255, 255, 255]
// }
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Helper for displaying badges in chrome.action API.
We found that chrome-badge demonstrated a not healthy version release cadence and project activity because the last version was released 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.