2.0.0 • Published 8 months ago
calender_event v2.0.0
Calender Event
iCalendar (.ics) file generator
NOTE: This package is currently under development
Install
Use npm package manger to install
npm i calender_event
Usage
In node / CommonJS
const createEvent = require('calender_event');
// or, in ESM: import { createEvent } from 'calender_event'
// Create event object. Find details for parameters below
const eventDetails = {
// Event properties
};
const calenderEvent = createEvent(eventDetails);
Properties for event in calender (VEVENT)
Key | Notes | Data type | Required | Default |
---|---|---|---|---|
uid | Unique Id to identify the event | string | NO | UUIDv4 |
productId | Name of the product / organization creating the event | string | NO | Calender_Event |
method | iTip method to invite attendees to meetings | 'PUBLISH' | 'REQUEST' | 'REPLY' | 'ADD' | 'CANCEL' | 'REFRESH' | 'COUNTER' | 'DECLINECOUNTER' | NO | PUBLISH |
createdAt | Date and time of the event | ISO Date UTC | NO | Current date and time |
startAt | Date and time of the event starting at | ISO Date UTC | NO | null |
endAt | Date and time of the event ending at | ISO Date UTC | NO | null |
duration | Duration of event in minutes. Note: If both endAt and duration are missing event is considered as a whole day event | number | NO | 1440 |
organizer | Details of the event organizer. Find the parameters below | Organizer | YES | NA |
attendees | Details of the people attending the event | Array of Attendee | NO | [] |
description | Description / agenda of the event | string | NO | null |
lastModified | Date and time of the event was last modified at | ISO Date UTC | NO | null |
location | Location of the event taking place at | string | NO | null |
status | Current status of the event | 'TENTATIVE' | 'CONFIRMED' | 'CANCELLED' | NO | 'CONFIRMED' |
sequence | Counter of the updates performed on the event, to keep the latest version in user's calender | number | NO | 0 |
summary | Title of the event | string | NO | null |
timeTransparency | To mark the calender as busy or free during the event | 'OPAQUE' | 'TRANSPARENT' | NO | 'OPAQUE' |
url | URL to associated with the event | string | NO | null |
Organizer Properties
Key | Note | Data type | Required | Default |
---|---|---|---|---|
mailto | Email id on which the receiver can reply to | YES | NA | |
name | Name of the person owing the email | string | NO | mailto |
inviteBy | Email of the person sharing the event | string | NO | null |
directoryURL | URL to the person's \/ organization's profile | URL | NO | null |
Reference
Contributing?
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
2.0.0
8 months ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago