Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perongh/simple-ics
A super simple deno module for generating .ics files.
https://github.com/perongh/simple-ics
calendar deno ics typescript
Last synced: 3 months ago
JSON representation
A super simple deno module for generating .ics files.
- Host: GitHub
- URL: https://github.com/perongh/simple-ics
- Owner: PeronGH
- Created: 2022-09-06T16:41:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T15:39:16.000Z (7 months ago)
- Last Synced: 2024-11-16T13:47:03.306Z (3 months ago)
- Topics: calendar, deno, ics, typescript
- Language: TypeScript
- Homepage: https://deno.land/x/simple_ics
- Size: 17.6 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple ICS
## A super simple deno module for generating .ics files.### Example
```typescript
import {
Event,
EventConfig,
Calendar,
} from 'https://deno.land/x/simple_ics/mod.ts';const cfg1: EventConfig = {
title: 'Write Typescript',
beginDate: [2022, 9, 6, 9, 30],
endDate: [2022, 9, 6, 10],
desc: 'Implement a module to generate .ics files',
};const cfg2: EventConfig = {
title: 'Write Rust for 3 days',
beginDate: new Date(),
duration: 3600, // Duration: 3600s, or 1h
rrule: {
freq: 'DAILY',
count: 3,
},
alarm: {
desc: 'Write Rust NOW',
advance: 30,
},
};const evt1 = new Event(cfg1);
const evt2 = new Event(cfg2);const calendar = new Calendar([evt1, evt2]);
console.log(calendar.toString());
```### Credits
Some code is borrowed from https://github.com/adamgibbons/ics