📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

angular-ics-generator

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-ics-generator

A simple library to create and download a basic .ics file from an Angular application.

1.0.11
latest
Version published
Maintainers
1
Created

Angular .ics Generator

A simple library to create and download a basic .ics file from an Angular application.

Installing

npm install angular-ics-generator

Use versions as following 1.0.6 for Angular 13 1.0.7 for Angular 14 1.0.8 for Angular 15 1.0.9 for Angular 16

Using

Import the generator service:

import { AngularIcsGeneratorService } from 'angular-ics-generator';

Then call it like this:

const startDate = new Date();
const endDate = new Date();
this._icsService.DownloadIcs(startDate,
                endDate,
                'my event title',
                'my event description',
                `url`,
                'location',
                'My organization', // organisation is optional
                'EN', // locale is optional. EN will be used if no locale is provided
                '15'); // Optional value for minutes to set reminder. Will have no automatic reminder if not provided.

This will generate and download the .ics file. All the user will need to do is open the file and save the event in any calendar app supporting this format

License

MIT

FAQs

Package last updated on 11 Apr 2024

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