🏴☠️ AyeCal
Javascript iCal creation utility.
Usage
Install from npm
npm install ayecal
Creating Calendars
import ayecal from 'ayecal'
const myCalendar = ayecal({
name: 'My Calendar',
scope: 'custom-calendar.net',
})
.setTimezone('Australia/Melbourne')
.addEvent({
summary: 'Jacob\'s 22nd Birthday Party',
location: 'My apartment',
description: 'Hey everyone! Come to my party :)',
uid: 5678,
startTime: new Date(),
endTime: new Date(),
})
const myICS = myCalendar.toICS()
Creating Events
import ayecal from 'ayecal'
const myEvent = ayecal.event({
summary: 'Company Mixer',
location: '32 Downtown St, Melbourne Australia',
description: 'Hey everyone! Come to my party :)',
uid: 5678,
startTime: new Date(),
endTime: new Date(),
})
const eventICS = myEvent.toICS()
const myCalendar = ayecal()
myCalendar.addEvent(myEvent)
Contributing
PRs are welcomed :)
Run yarn
to install dependencies then yarn watch
to build on file changes.
Run yarn test
before committing to run the test cases.
To Do
License
MIT License, Ewan Breakey 2022