Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cal-data-transform

Parses one or more .ics calendar files and writes one JSON object per event occurrence to a JSONL file, suitable for LLM analysis.

Recurring events (RRULE/EXDATE/RECURRENCE-ID overrides) are expanded into individual occurrences. The default expansion range spans the earliest event start through the current date/time.

Usage

bun run src/cli.ts --input <file.ics> [--input <file2.ics> ...] --output <out.jsonl> [--from <ISO> --to <ISO>]

Output fields

Field Type Notes
summary string | null
start string ISO 8601 datetime or YYYY-MM-DD for all-day
end string Same format as start
duration string ISO 8601 duration, e.g. PT1H30M
dayOfWeek string M T W Th F Sa Su
allDay boolean
timezone string | null
location string | null Full location
locationTitle string | null Short location label
description string | null

Enhancements

  • remove unnecessary recurrence exception processing
  • output times in local timezone

🤖 Built w/ help from AI

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages