New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ics-tsc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ics-tsc

a library that generates ics files

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
165
-11.76%
Maintainers
1
Weekly downloads
 
Created
Source

ICS-TSC

General

A library, written in Typescript, that exports ICS (icalendar) event files based on RFC5545. Event files are being exported in UTC time format, so there are no timezone compatibility issues. Deviation from UTC time is being calculated according to the timezone offset of the current browser time.

Compatibility

  • Google Calendar
  • Calendar (MacOS)
  • Microsoft Outlook

Paremeters

* filename    (string) : name of your ics file
* dtstamp     (number) : timestamp of event creation
* dtstart     (number) : date of when event begins 
* dtend       (number) : date of when event ends 
* summary     (string) : title of the event
* description (string) : description of the event 
* location    (string) : location of the event [optional]

Instrcutions

  • Create new Date
  • Get UTC timestamp of the Date
  • Create new ICS class instancef
  • export ICS using exportICS()

Example

    const datetimeStart = new Date('2019-06-30T16:00:00Z');
    const datetimeEnd   = new Date('2019-06-30T18:00:00Z');
    const filename = 'event';
    const dtstamp = new Date().getTime();
    const dtstart = datetimeStart.getTime();
    const dtend = datetimeEnd.getTime();
    const summary = 'Title of the event';
    const description = 'Description of the event';

    const ics = new ICS(filename, dtstamp, dtstart, dtend, summary, description);
    ics.getIcs();

Authors

  • Loukas Kotas

Licence

This project is licensed under the MIT License. Read the LICENSE file for further details.

Keywords

ics

FAQs

Package last updated on 30 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts