{"id":13574652,"url":"https://github.com/sebbo2002/ical-generator","last_synced_at":"2026-04-17T19:04:24.431Z","repository":{"id":7353043,"uuid":"8677219","full_name":"sebbo2002/ical-generator","owner":"sebbo2002","description":"ical-generator is a small piece of code which generates ical calendar files","archived":false,"fork":false,"pushed_at":"2026-04-13T18:15:39.000Z","size":32522,"stargazers_count":842,"open_issues_count":2,"forks_count":161,"subscribers_count":9,"default_branch":"develop","last_synced_at":"2026-04-13T19:29:02.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebbo2002.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-03-09T22:30:46.000Z","updated_at":"2026-04-13T18:15:25.000Z","dependencies_parsed_at":"2023-01-13T14:20:55.544Z","dependency_job_id":"d9e4a8f0-dc63-40b3-9285-91d82e795b94","html_url":"https://github.com/sebbo2002/ical-generator","commit_stats":{"total_commits":1004,"total_committers":69,"mean_commits":14.55072463768116,"dds":"0.48904382470119523","last_synced_commit":"c2e42e9cead572c4f4ff24af9ae8f7346a0eee3f"},"previous_names":[],"tags_count":323,"template":false,"template_full_name":null,"purl":"pkg:github/sebbo2002/ical-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbo2002%2Fical-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbo2002%2Fical-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbo2002%2Fical-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbo2002%2Fical-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebbo2002","download_url":"https://codeload.github.com/sebbo2002/ical-generator/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbo2002%2Fical-generator/sbom","scorecard":{"id":808747,"data":{"date":"2025-08-11","repo":{"name":"github.com/sebbo2002/ical-generator","commit":"7a9fe5426ae15b7c6128b6979939ff82f7089cbd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/dependabot-auto-merge.yml:5","Warn: no topLevel permission defined: .github/workflows/is-semantic-pr.yml:1","Info: found token with 'none' permissions: .github/workflows/lock-issues.yml:1","Warn: no topLevel permission defined: .github/workflows/release-bot.yml:1","Warn: no topLevel permission defined: .github/workflows/stale-issues.yml:1","Warn: no topLevel permission defined: .github/workflows/template-updater.yml:1","Warn: no topLevel permission defined: .github/workflows/test-release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot-auto-merge.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/dependabot-auto-merge.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/is-semantic-pr.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/is-semantic-pr.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lock-issues.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/lock-issues.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-bot.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/release-bot.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-bot.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/release-bot.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-bot.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/release-bot.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale-issues.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/stale-issues.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/template-updater.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/template-updater.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-release.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-release.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/sebbo2002/ical-generator/test-release.yml/develop?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   5 out of   5 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'","Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/test-release.yml:67"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T12:32:03.399Z","repository_id":7353043,"created_at":"2025-08-23T12:32:03.399Z","updated_at":"2025-08-23T12:32:03.399Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31935719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:00:53.387Z","updated_at":"2026-04-17T19:04:24.396Z","avatar_url":"https://github.com/sebbo2002.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sebbo2002/ical-generator#gh-light-mode-only\"\u003e\n    \u003cimg src=\"https://static.sebbo.net/ical-generator/logo-light.svg\" width=\"318px\" alt=\"ical-generator logo\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/sebbo2002/ical-generator#gh-dark-mode-only\"\u003e\n    \u003cimg src=\"https://static.sebbo.net/ical-generator/logo-dark.svg\" width=\"318px\" alt=\"ical-generator logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sebbo2002/ical-generator/blob/develop/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\" alt=\"MIT License\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://bundlephobia.com/package/ical-generator\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/min/ical-generator?style=flat-square\" alt=\"Module Size\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/sebbo2002/ical-generator/actions/workflows/test-release.yml?query=branch%3Adevelop\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/sebbo2002/ical-generator/test-release.yml?style=flat-square\" alt=\"CI Status\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://sebbo2002.github.io/ical-generator/develop/coverage/\"\u003e\u003cimg alt=\"Code Coverage Badge\" src=\"https://img.shields.io/nycrc/sebbo2002/ical-generator?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n`ical-generator` is a small but fine library with which you can very easily create a valid iCal calendars, for example\nto generate subscriptionable calendar feeds.\n\n## 📦 Installation\n\n    npm install ical-generator\n\n## ⚡️ Quick Start\n\n```javascript\nimport ical, { ICalCalendarMethod } from 'ical-generator';\nimport http from 'node:http';\n\nconst calendar = ical({ name: 'my first iCal' });\n\n// A method is required for outlook to display event as an invitation\ncalendar.method(ICalCalendarMethod.REQUEST);\n\nconst startTime = new Date();\nconst endTime = new Date();\nendTime.setHours(startTime.getHours() + 1);\ncalendar.createEvent({\n    start: startTime,\n    end: endTime,\n    summary: 'Example Event',\n    description: 'It works ;)',\n    location: 'my room',\n    url: 'http://sebbo.net/',\n});\n\nhttp.createServer((req, res) =\u003e {\n    res.writeHead(200, {\n        'Content-Type': 'text/calendar; charset=utf-8',\n        'Content-Disposition': 'attachment; filename=\"calendar.ics\"',\n    });\n\n    res.end(calendar.toString());\n}).listen(3000, '127.0.0.1', () =\u003e {\n    console.log('Server running at http://127.0.0.1:3000/');\n});\n```\n\nSee the [examples](https://github.com/sebbo2002/ical-generator/tree/develop/examples) folder for more examples.\n\n## 📑 API-Reference\n\n- [Index](https://sebbo2002.github.io/ical-generator/develop/reference/)\n    - [ICalCalendar](https://sebbo2002.github.io/ical-generator/develop/reference/classes/ICalCalendar.html)\n    - [ICalEvent](https://sebbo2002.github.io/ical-generator/develop/reference/classes/ICalEvent.html)\n        - [ICalAlarm](https://sebbo2002.github.io/ical-generator/develop/reference/classes/ICalAlarm.html)\n        - [ICalAttendee](https://sebbo2002.github.io/ical-generator/develop/reference/classes/ICalAttendee.html)\n        - [ICalCategory](https://sebbo2002.github.io/ical-generator/develop/reference/classes/ICalCategory.html)\n\n## 🕒 Date, Time \u0026 Timezones\n\nical-generator supports [native Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date),\n[Day.js](https://day.js.org/en/), [Luxon's](https://moment.github.io/luxon/) [DateTime](https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html),\nthe older [moment.js](https://momentjs.com/), [moment-timezone](https://momentjs.com/timezone/),\n[TZDate](https://github.com/date-fns/tz) and [Temporal](https://tc39.es/proposal-temporal/docs/) objects.\nYou can also pass a string which is then passed to javascript's `Date` internally.\n\nIt is recommended to use UTC time as far as possible. `ical-generator` will output all time information as UTC time as\nlong as no time zone is defined. For day.js, a plugin is necessary for this, which is a prerequisite. If a time zone is\nset, `ical-generator` assumes that the given time matches the time zone. If a time zone is used, it is also recommended\nto use a VTimezone generator. Such a function generates a VTimezone entry and returns it. For example,\n`timezones-ical-library` or `@touch4it/ical-timezones` can be used for this:\n\n#### Example with `@touch4it/ical-timezones`\n\n```typescript\nimport { ICalCalendar } from 'ical-generator';\nimport { getVtimezoneComponent } from '@touch4it/ical-timezones';\n\nconst cal = new ICalCalendar();\ncal.timezone({\n    name: 'Europe/London',\n    generator: getVtimezoneComponent,\n});\ncal.createEvent({\n    start: new Date(),\n    timezone: 'Europe/London',\n});\n```\n\n#### Example with `timezones-ical-library`\n\n```typescript\nimport { ICalCalendar } from 'ical-generator';\nimport { tzlib_get_ical_block } from 'timezones-ical-library';\n\nconst cal = new ICalCalendar();\ncal.timezone({\n    name: 'Europe/Berlin',\n    generator: (tz) =\u003e tzlib_get_ical_block(tz)[0],\n});\ncal.createEvent({\n    start: new Date(),\n    timezone: 'Europe/London',\n});\n```\n\nIf a `moment-timezone` object or Luxon's `setZone` method works, `ical-generator` sets it according to the time zone set\nin the calendar/event.\n\n## 🚦 Tests\n\n```\nnpm test\nnpm run coverage\n```\n\n## 🙋 FAQ\n\n### Where's the changelog?\n\nIt's [here](https://github.com/sebbo2002/ical-generator/blob/develop/CHANGELOG.md). If you need the changelog for\n`ical-generator` 1.x.x and older, you'll find it [here](https://github.com/sebbo2002/ical-generator/blob/25338b8bf98f9afd3c88849e735fa33fa45fb766/CHANGELOG.md).\n\n### I get a `ReferenceError: TextEncoder is not defined` error (in some browsers)\n\nThis library uses [`TextEncoder`](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder), which\nis available in node.js ≥ 11.0.0 and [all modern browsers](https://caniuse.com/?search=textencoder).\nOutdated browsers may not have the necessary API and generate this error when generating the calendar.\n\n## 🙆🏼‍♂️ Copyright and license\n\nCopyright (c) Sebastian Pekarek under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbo2002%2Fical-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebbo2002%2Fical-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbo2002%2Fical-generator/lists"}