{"id":21748082,"url":"https://github.com/js-sdk/js-sdk-calendar","last_synced_at":"2026-04-24T20:36:48.911Z","repository":{"id":57283599,"uuid":"103591149","full_name":"js-sdk/js-sdk-calendar","owner":"js-sdk","description":"Simple calendar utilities.","archived":false,"fork":false,"pushed_at":"2017-09-16T03:55:31.000Z","size":46,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-26T03:46:02.642Z","etag":null,"topics":["calendar","javascript","library"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/js-sdk.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":"contributing.md","funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-14T23:18:06.000Z","updated_at":"2019-11-19T20:33:33.000Z","dependencies_parsed_at":"2022-09-04T18:53:08.997Z","dependency_job_id":null,"html_url":"https://github.com/js-sdk/js-sdk-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/js-sdk/js-sdk-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fjs-sdk-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fjs-sdk-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fjs-sdk-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fjs-sdk-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-sdk","download_url":"https://codeload.github.com/js-sdk/js-sdk-calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fjs-sdk-calendar/sbom","scorecard":{"id":537378,"data":{"date":"2025-08-11","repo":{"name":"github.com/js-sdk/js-sdk-calendar","commit":"bc1a335ab6009ffd47cb9a44b2d9fdba960c45a0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/27 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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Info: FSF or OSI recognized license: The Unlicense: license.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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"}}]},"last_synced_at":"2025-08-20T07:19:59.779Z","repository_id":57283599,"created_at":"2025-08-20T07:19:59.779Z","updated_at":"2025-08-20T07:19:59.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32240216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["calendar","javascript","library"],"created_at":"2024-11-26T08:12:01.747Z","updated_at":"2026-04-24T20:36:48.893Z","avatar_url":"https://github.com/js-sdk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-sdk-calendar\n\n[![Build Status](https://travis-ci.org/js-sdk/js-sdk-calendar.svg?branch=master)](https://travis-ci.org/js-sdk/js-sdk-calendar) [![Coverage Status](https://coveralls.io/repos/github/js-sdk/js-sdk-calendar/badge.svg?branch=master)](https://coveralls.io/github/js-sdk/js-sdk-calendar?branch=master)\n\nSimple calendar utilities.\n\n## library\n\n```ts\n$ isFirstWeek(date : Date) -\u003e Boolean\n\n// true if it is in first week.\n\n\n$ isLastWeek(date : Date) -\u003e Boolean\n\n// true if it is in last week.\n\n\n$ monthRange(s : Number, e : Number, f : Number -\u003e b) -\u003e [b]\n\n// Returns a range of days from 's' start and 'e' end.\n// For each day apply function 'f'.\n//\n// Note: 's' and 'e' are not checked if they are actually in the month.\n// Use `rangeInMonth` to validate those values.\n\n\n$ rangeInMonth(d : Date, s : Number, e : Number, f : Number -\u003e b) -\u003e [b]\n\n// Returns a range of days from 's' start and 'e' end.\n// Use date 'd' to check if 'e' don't pass the last day of the month,\n// if it does, return the last day.\n\n\n$ beginOfMonth(d : Date) -\u003e Date\n\n// Returns the first day as 'Date' using date 'd'.\n\n\n$ endOfMonth(d : Date) -\u003e Date\n\n// Returns the last day as 'Date' using date 'd'.\n\n\n$ beginOfDay(d : Date) -\u003e Date\n\n// Returns the begin of day as 'Date' using date 'd'.\n\n\n$ endOfDay(d : Date) -\u003e Date\n\n// Returns the end of day as 'Date' using date 'd'.\n\n\n$ beginOfNextMonth(d : Date) -\u003e Date\n\n// Returns the first day of the next month of 'd' as 'Date'.\n\n\n$ endOfPreviosMonth(d : Date) -\u003e Date\n\n// Returns the last day of the previous month of 'd' as 'Date'.\n\n\n$ firstWeekOfMonth(d : Date, f : Number -\u003e b) -\u003e [b]\n\n// Returns an 'Array' of days of the first week of 'd'.\n// For each day apply function 'f'.\n\n\n$ firstWeekOfNextMonth(d : Date, f : Number -\u003e b) -\u003e [b]\n\n// Returns an 'Array' of days of the first week of the next month of 'd'.\n// For each day apply function 'f'.\n\n\n$ lastWeekOfMonth(d : Date, f : Number -\u003e b) -\u003e [b]\n\n// Returns an 'Array' of days of the last week of 'd'.\n// For each day apply function 'f'.\n\n\n$ lastWeekOfPreviousMonth(d : Date, f : Number -\u003e b) -\u003e [b]\n\n// Returns an 'Array' of days of the last week of the previous month of 'd'.\n// For each day apply function 'f'.\n\n\n$ weekImpl(d : Date, f : Number -\u003e b) -\u003e [b]\n\n// Generic version of the function to generate a week calendar.\n//\n// Note: Blank spaces of the 'Array' are all 'null' and 'f' is not applied\n// to them.\n\n\n$ week(d : Date) -\u003e [Number]\n\n// Generate a list of days from the week of date.\n\n= week(new Date(2017, 0, 1)) == weekImpl(new Date(2017, 0, 1), identity)\n\n\n$ weekCImpl(d : Date, f : (Number, Number, Number) -\u003e b) -\u003e [b]\n\n// Generic function to generate a continuous week calendar of 'd'.\n// This function will fill the blank spaces of the week\n// with the next or previous week if needed.\n// Apply 'f' to each day. This function will receive the 'year', 'month' and 'day'.\n\n\n$ weekC(d : Date) -\u003e [Number]\n\n// Generate a list of days of the week.\n// This function will fill the blank spaces of the week\n// with the next or previous week if needed.\n\n= weekC(new Date(2017, 0, 1)) == weekCImpl(new Date(2017, 0, 1), (y, m, d) =\u003e [y, m, d])\n\n\n$ monthImpl(d : Date, f : Number -\u003e b) : [[b]]\n\n// Generic version of the function to generate a month calendar.\n//\n// Note: Blank spaces of the 'Array' are all 'null' and 'f' is not applied\n// to them.\n\n\n$ month(date : Date) -\u003e [[Number]]\n\n// Generate a list of weeks of (list of lists).\n\n= month(new Date(2017, 0, 1)) == monthImpl(new Date(2017, 0, 1), identity)\n\n\n$ monthCImpl(d : Date, f : (Number, Number, Number) -\u003e b) -\u003e [[b]]\n\n// Generic function to generate a continuous month calendar of 'd'.\n// This function will fill the blank spaces of the week\n// with the next or previous week if needed.\n// Apply 'f' to each day. This function will receive the 'year', 'month' and 'day'.\n\n\n$ monthC(d : Date) -\u003e [[Number]]\n\n// Generate a list of week of days of the month.\n// This function will fill the blank spaces of the week\n// with the next or previous week if needed.\n\n= monthC(new Date(2017, 0, 1)) == monthCImpl(new Date(2017, 0, 1), (y, m, d) =\u003e [y, m, d])\n```\n\n\n## license\n\nSee `license.md` or visit [Unlicense](http://unlicense.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-sdk%2Fjs-sdk-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-sdk%2Fjs-sdk-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-sdk%2Fjs-sdk-calendar/lists"}