2.0.0 • Published 8 months ago

calender_event v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Calender Event

iCalendar (.ics) file generator

NOTE: This package is currently under development

npm version

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)

KeyNotesData typeRequiredDefault
uidUnique Id to identify the eventstringNOUUIDv4
productIdName of the product / organization creating the eventstringNOCalender_Event
methodiTip method to invite attendees to meetings'PUBLISH' | 'REQUEST' | 'REPLY' | 'ADD' | 'CANCEL' | 'REFRESH' | 'COUNTER' | 'DECLINECOUNTER'NOPUBLISH
createdAtDate and time of the eventISO Date UTCNOCurrent date and time
startAtDate and time of the event starting atISO Date UTCNOnull
endAtDate and time of the event ending atISO Date UTCNOnull
durationDuration of event in minutes. Note: If both endAt and duration are missing event is considered as a whole day eventnumberNO1440
organizerDetails of the event organizer. Find the parameters belowOrganizerYESNA
attendeesDetails of the people attending the eventArray of AttendeeNO[]
descriptionDescription / agenda of the eventstringNOnull
lastModifiedDate and time of the event was last modified atISO Date UTCNOnull
locationLocation of the event taking place atstringNOnull
statusCurrent status of the event'TENTATIVE' | 'CONFIRMED' | 'CANCELLED'NO'CONFIRMED'
sequenceCounter of the updates performed on the event, to keep the latest version in user's calendernumberNO0
summaryTitle of the eventstringNOnull
timeTransparencyTo mark the calender as busy or free during the event'OPAQUE' | 'TRANSPARENT'NO'OPAQUE'
urlURL to associated with the eventstringNOnull

Organizer Properties

KeyNoteData typeRequiredDefault
mailtoEmail id on which the receiver can reply toemailYESNA
nameName of the person owing the emailstringNOmailto
inviteByEmail of the person sharing the eventstringNOnull
directoryURLURL to the person's \/ organization's profileURLNOnull

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