
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-alarms
Advanced tools
Helper for chrome.alarms API.
To use the chrome.alarms API, declare the "alarms" permission in the manifest:
{
"name": "My extension",
"permissions": ["alarms"]
}
You can install this library using npm:
npm install chrome-alarms
| Key | Type | Optional | Description |
|---|---|---|---|
name | string | Name of this alarm. | |
periodInMinutes | number | ◯ | If not null, the alarm is a repeating alarm and will fire again in periodInMinutes minutes. |
createCreates an alarm. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
import { Alarm } from "chrome-alarms";
const name = "test";
const periodInMinutes = 1;
await Alarm.create(name, periodInMinutes);
clearClears the alarm with the given name.
import { Alarm } from "chrome-alarms";
const name = "test";
await Alarm.clear(name);
clearAllClears all alarms.
import { Alarm } from "chrome-alarms";
await Alarm.clearAll();
getRetrieves details about the specified alarm.
import { Alarm } from "chrome-alarms";
const name = "test";
const alarm = await Alarm.get(name);
console.log(alarm);
// Output: Object{ name: "test", periodInMinutes: 1, scheduledTime: 1706435598914.826 }
getAllGets an array of all the alarms.
import { Alarm } from "chrome-alarms";
const alarms = await Alarm.getAll();
console.log(alarms);
// Output: Array[{ name: "test", periodInMinutes: 1, scheduledTime: 1706435598914.826 }]
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Helper for chrome.alarms API.
We found that chrome-alarms 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.