1.1.4 • Published 1 year ago

ics-to-json-extended v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Convert the ICS calendar format to JSON data to consume in web apps.

Installation

npm install ics-to-json-extended

Difference from Original

  • Add RRULE to JSON

Usage

import icsToJson from "ics-to-json-extended";

// Get ICS text however you like, example below
// Make sure you have the right CORS settings if needed
const convert = async (fileLocation) => {
  const icsRes = await fetch(fileLocation);
  const icsData = await icsRes.text();
  // Convert
  const data = icsToJson(icsData);
  return data;
};

Format

Result is an array of:

{
  startDate: '20180505T020000Z',
  endDate: '20180505T060000Z',
  description: 'Big Event!',
  location: 'The place!',
  summary: 'Summary!'
}
1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago