{"id":30285522,"url":"https://github.com/modern-dev/daylight","last_synced_at":"2025-08-16T20:03:17.999Z","repository":{"id":66296113,"uuid":"47021498","full_name":"modern-dev/daylight","owner":"modern-dev","description":"Daylight - is a tiny JavaScript library for basic sun/moon position/times/phase calculations.","archived":false,"fork":false,"pushed_at":"2020-01-11T23:24:23.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T22:58:14.242Z","etag":null,"topics":["astro","astronomical","civil","dawn","daylight","dusk","moonrise","moonset","nautical","phase","sunrise","sunset","twilight"],"latest_commit_sha":null,"homepage":"","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/modern-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2015-11-28T11:53:45.000Z","updated_at":"2025-03-31T04:24:20.000Z","dependencies_parsed_at":"2023-02-22T21:45:50.704Z","dependency_job_id":null,"html_url":"https://github.com/modern-dev/daylight","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.17647058823529416","last_synced_commit":"43f3db9e1ea2f57cefb7f7e3faa9e534b5a81d6f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/modern-dev/daylight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modern-dev%2Fdaylight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modern-dev%2Fdaylight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modern-dev%2Fdaylight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modern-dev%2Fdaylight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modern-dev","download_url":"https://codeload.github.com/modern-dev/daylight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modern-dev%2Fdaylight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270520184,"owners_count":24599309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["astro","astronomical","civil","dawn","daylight","dusk","moonrise","moonset","nautical","phase","sunrise","sunset","twilight"],"created_at":"2025-08-16T20:02:29.325Z","updated_at":"2025-08-16T20:03:17.836Z","avatar_url":"https://github.com/modern-dev.png","language":"TypeScript","readme":"Daylight\n========\n\n[![Build Status](https://travis-ci.org/modern-dev/daylight.svg?branch=master)](https://travis-ci.org/modern-dev/daylight)\n[![codecov](https://codecov.io/gh/modern-dev/daylight/branch/master/graph/badge.svg)](https://codecov.io/gh/modern-dev/daylight)\n![npm](https://img.shields.io/npm/v/@modern-dev/daylight)\n![NPM](https://img.shields.io/npm/l/@modern-dev/daylight)\n\nDaylight - is a tiny JavaScript library for basic sun/moon position/times/phase calculations.\n\n```shell script\n$ npm install -save @modern-dev/daylight\n```\n\n## :clipboard: Usage\n\n```js\nimport { sun, moon } from '@modern-dev/daylight';\n\nconst sunPosition = sun.getPosition(new Date(), 90.0, 45.0);\nconsole.log('Sun\\'s altitude at the South Pole is ', sunPosition.altitude);\n\nconst moonPahse = moon.getPhase(new Date());\nconsole.log('Today\\'s moon phase is ', moonPhase.phase);\n```\n\n## :mortar_board: API Reference\n*Will be added soon.*\n\n## :green_book: License\n\n[Licensed under the MIT license.](https://github.com/modern-dev/daylight/blob/master/LICENSE)\n\nCopyright (c) 2020 Bohdan Shtepan\n\n---\n\n\u003e [modern-dev.com](http://modern-dev.com) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@virtyaluk](https://github.com/virtyaluk) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@virtyaluk](https://twitter.com/virtyaluk)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodern-dev%2Fdaylight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodern-dev%2Fdaylight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodern-dev%2Fdaylight/lists"}