https://github.com/qertis/ical-browser
JavaScript browser iCalendar generator
https://github.com/qertis/ical-browser
ical icalendar icalendar-rfc ics rfc-5541
Last synced: 3 months ago
JSON representation
JavaScript browser iCalendar generator
- Host: GitHub
- URL: https://github.com/qertis/ical-browser
- Owner: qertis
- License: mit
- Created: 2023-04-27T15:21:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T10:36:33.000Z (about 1 year ago)
- Last Synced: 2024-05-06T02:03:31.120Z (about 1 year ago)
- Topics: ical, icalendar, icalendar-rfc, ics, rfc-5541
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ical-browser
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ical-browser
> Working in the Browser and Node.js[](https://codepen.io/qertis/full/RweggQJ)
## Installation
```bash
npm install ical-browser
```## Example
```js
import {
VEvent,
default as ICalendar,
} from 'ical-browser'const vevent = new VEvent({
uid: 'c7614cff-3560-4a00-9152-d25cc1fe077d',
summary: 'Event Title',
description: 'My event',
start: new Date(),
})
const calendar = new ICalendar()
calendar.addEvent(vevent)
calendar.download('calendar.ics')
```## Copyright and license
Copyright (c) Denis Baskovsky under the MIT license.