2.0.2 • Published 7 months ago

ics-to-json v2.0.2

Weekly downloads
2,673
License
MIT
Repository
github
Last release
7 months ago

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

Usage

import { icsToJson } from 'ics-to-json';

// 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!'
}
2.0.2

7 months ago

2.0.0

7 months ago

1.0.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago