{"repo":"adamgibbons/ics","free":true,"listed":false,"github":"https://github.com/adamgibbons/ics","clone":"git clone https://github.com/adamgibbons/ics.git","description":"iCalendar (ics) file generator for node.js","language":"JavaScript","stars":787,"topics":["icalendar","ical","ics","ics-ical","javascript","alarm","calendar","calendar-events","vevent","vcalendar"],"license":"ISC","category":"productivity","readme_excerpt":"ics ================== The iCalendar generator Install npm install -S ics Example Usage In node / CommonJS 1) Create an iCalendar event: 2) Write an iCalendar file: 3) Create multiple iCalendar events: 3b) Create multiple events asynchronously (large batches): createEventsAsync returns a Promise that resolves to { error, value } (there is no callback form). While building the calendar it yields to the event loop periodically, which helps keep huge event lists from blocking Node or the browser for too long. An empty event list and optional calendar header work the same as with createEvents : 4) Create iCalendar events with Audio (Mac): Using ESModules & in the browser API createEvent(attributes[, callback]) Generates an iCal-compliant VCALENDAR string with one VEVENT. If a callback is not provided, returns an object having the form { error, value } , where value contains an iCal-compliant string if there are no errors. If a callback is provided, returns a Node-style callback. attributes Object literal containing event information. Only the start property is required. Note all date/time fields can be the array form, or a number representing the unix timestamp in milliseconds (e.g. getTime() on a Date ). The following properties are accepted: Property Description Example ------------- ------------- ---------- start Required . Date and time at which the event begins. [2000, 1, 5, 10, 0] (January 5, 2000) or a number startInputType Type of the date/time data in start : local (defa","default_branch":null,"files":null,"tree":[],"storefront":"/r/adamgibbons","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adamgibbons/ics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}