npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

calender_event

v2.0.0

Published

Package to create ics file

Downloads

10

Readme

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)

| 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 | email | 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

  • https://www.rfc-editor.org/rfc/rfc2446.html

  • https://www.kanzaki.com/docs/ical

  • https://github.com/adamgibbons/ics

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.