Create a new, empty calendar and returns it.
import ical from 'ical-generator';// or use require:// const { default: ical } = require('ical-generator');const cal = ical(); Copy
import ical from 'ical-generator';// or use require:// const { default: ical } = require('ical-generator');const cal = ical();
You can pass options to setup your calendar or use setters to do this.
import ical from 'ical-generator';// or use require:// const { default: ical } = require('ical-generator');const cal = ical({domain: 'sebbo.net'});// is the same asconst cal = ical().domain('sebbo.net');// is the same asconst cal = ical();cal.domain('sebbo.net'); Copy
import ical from 'ical-generator';// or use require:// const { default: ical } = require('ical-generator');const cal = ical({domain: 'sebbo.net'});// is the same asconst cal = ical().domain('sebbo.net');// is the same asconst cal = ical();cal.domain('sebbo.net');
Optional
Calendar data
Create a new, empty calendar and returns it.
You can pass options to setup your calendar or use setters to do this.