# ics-to-json-extended

> A tool to convert ICS calendars to JSON

Latest version **1.1.4** (published 2023-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install ics-to-json-extended
pnpm add ics-to-json-extended
yarn add ics-to-json-extended
bun add ics-to-json-extended
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-03-20 |
| First published | 2021-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yn1323 |
| Maintainers | yn1323 |
| Keywords | ics, ics to json, ics-to-json, json |

## Links

- npm: https://www.npmjs.com/package/ics-to-json-extended
- Repository: https://github.com/yn1323/ics-to-json-extended
- Homepage: https://github.com/yn1323/ics-to-json-extended#readme
- Issues: https://github.com/yn1323/ics-to-json-extended/issues
- npm.io page: https://npm.io/package/ics-to-json-extended

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.29.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.4 (latest) — 2023-03-20
- 1.1.3 — 2023-03-20
- 1.1.2 — 2021-08-01
- 1.1.1 — 2021-08-01
- 1.1.0 — 2021-08-01

## README

<p align="center">
    <img width="500" src="https://user-images.githubusercontent.com/10063864/38649838-bb70b7ba-3dc6-11e8-9c10-943ad21cd592.png" alt="ics-to-json">
    <br>
</p>

---

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

```js
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:

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

---
_Source: https://npm.io/package/ics-to-json-extended · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
