https://github.com/pratikpc/gcal2ics
Convert GCal Embedded links to Google iCal links
https://github.com/pratikpc/gcal2ics
Last synced: over 1 year ago
JSON representation
Convert GCal Embedded links to Google iCal links
- Host: GitHub
- URL: https://github.com/pratikpc/gcal2ics
- Owner: pratikpc
- Created: 2021-01-27T11:03:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-27T18:44:52.000Z (over 5 years ago)
- Last Synced: 2025-03-13T01:18:51.856Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/gcal2ics
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcal2ics (Google Calendar To Google Cal ICS)
[](https://www.npmjs.com/package/gcal2ics) [](http://www.typescriptlang.org/) [](https://github.com/prettier/prettier) [](https://github.com/pratikpc/gcal2ics/actions) [](https://github.com/pratikpc/gcal2ics/actions)
## Why
Recently, someone shared an embeded Calendar link with me.
A bit like https://calendar.google.com/calendar/embed?src=info@example.com
I for obvious reasons wanted to link that embeded Calendar with my Calendar app
However, direct copy-paste in this scenario would not work
I needed to convert it to https://calendar.google.com/calendar/ical/info@example.com/public/basic.ics
So inspired from this [SO answer](https://stackoverflow.com/a/56711805) to automate this process, I decided to create gcal2ics (there were a lot of links)
## [Website](https://pratikpc.github.io/gcal2ics-ui/)
You can use our React website at https://pratikpc.github.io/gcal2ics-ui/
### Sample Screenshot

## Usage
### COMMAND LINE
```
> gcal2ics https://calendar.google.com/calendar/embed?src=info@example.com
https://calendar.google.com/calendar/ical/info@example.com/public/basic.ics
```
### CODE
[TypeScript](https://www.typescriptlang.org/)/JavaScript
```js
import gcal2ics from 'gcal2ics';
console.log(
gcal2ics(
'https://calendar.google.com/calendar/embed?src=info@example.com'
)
);
// OUTPUT
// https://calendar.google.com/calendar/ical/info@example.com/public/basic.ics
```