
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
rruleconverter
Advanced tools
npm install rruleconverter
Convert rrule
"RRULE:FREQ=WEEKLY;BYDAY=TH;COUNT=3"
To
Every week on Thursday for 3 times
// import
import rruleToWords from "rruleconverter";
or
const rruleToWords = require('rruleconverter')
// call the function and pass the rrule as a string
rruleToWords("RRULE:FREQ=WEEKLY;BYDAY=TH")
// output for this example
// Every week on Thursday
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=11") // Every day at 11:00
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=13;BYMINUTE=30;COUNT=5") // Every day at 13:30 for 5 times
rruleToWords("RRULE:FREQ=WEEKLY;BYDAY=MO;INTERVAL=2;COUNT=3") // Every 2 weeks on Monday for 3 times
rruleToWords("RRULE:FREQ=MONTHLY;BYMONTHDAY=2") // Every month on the 2nd
rruleToWords("RRULE:FREQ=MONTHLY;BYMONTHDAY=23;COUNT=6") // Every month on 23rd for 6 times
rruleToWords(rrule, timeformat)
// arguments
1. rrule - "RRULE:FREQ=DAILY;BYHOUR=11"
2. timeformat - "12HM", "12M" (optional)
The second argument is optional and for defining the time format. If not specified it will show the time as 24-Hour format
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=15") // Every day at 15:00
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=11", "12HM") // Every day at 11:00 AM
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=18;BYMINUTE=30", "12HM") // Every day at 6:30 PM
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=20;BYMINUTE=30", "12H") // Every day at 8PM
rruleToWords("RRULE:FREQ=DAILY;BYHOUR=13;BYMINUTE=30;COUNT=5", "12H") // Every day at 1PM for 5 times
Author Maor Tzabari
FAQs
Convert rrule string to words.
The npm package rruleconverter receives a total of 0 weekly downloads. As such, rruleconverter popularity was classified as not popular.
We found that rruleconverter 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.