{"id":13580692,"url":"https://github.com/AndreVarandas/sunrise-cli","last_synced_at":"2025-04-06T02:32:29.969Z","repository":{"id":38174044,"uuid":"303296996","full_name":"AndreVarandas/sunrise-cli","owner":"AndreVarandas","description":"Get the sunrise and sunset for your location, right from your terminal!","archived":false,"fork":false,"pushed_at":"2024-03-16T20:14:17.000Z","size":4063,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T15:27:18.002Z","etag":null,"topics":["cli","command","command-line","command-line-app","command-line-tool","hacktoberfest","node-cli","node-typescript","nodejs","nodejs-cli","sunrise","sunset","typescript","typescript-cli"],"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/AndreVarandas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-12T06:23:30.000Z","updated_at":"2024-04-13T06:56:44.000Z","dependencies_parsed_at":"2023-02-18T08:00:40.674Z","dependency_job_id":"e3927c40-901c-4037-8150-d20425503111","html_url":"https://github.com/AndreVarandas/sunrise-cli","commit_stats":{"total_commits":55,"total_committers":3,"mean_commits":"18.333333333333332","dds":"0.38181818181818183","last_synced_commit":"73212d069cbe8a5bb7222f3919daff35234295de"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreVarandas%2Fsunrise-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreVarandas%2Fsunrise-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreVarandas%2Fsunrise-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreVarandas%2Fsunrise-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreVarandas","download_url":"https://codeload.github.com/AndreVarandas/sunrise-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247426384,"owners_count":20937112,"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","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":["cli","command","command-line","command-line-app","command-line-tool","hacktoberfest","node-cli","node-typescript","nodejs","nodejs-cli","sunrise","sunset","typescript","typescript-cli"],"created_at":"2024-08-01T15:01:54.302Z","updated_at":"2025-04-06T02:32:29.275Z","avatar_url":"https://github.com/AndreVarandas.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/AndreVarandas/sunrise-cli/master/art/logo.png\" width=\"350\" height=\"350\" alt=\"Sunrise cli logo\"\u003e\n\u003c/p\u003e\n\n# sunrise-cli\nGet the sunrise and sunset for your location or target, right from your terminal!\n\n[![npm (scoped)](https://img.shields.io/npm/v/@varandas/sunrise-cli.svg)](https://www.npmjs.com/package/@varandas/sunrise-cli)\n[![npm](https://img.shields.io/npm/dm/@varandas/sunrise-cli.svg)](https://npmcharts.com/compare/@varandas/sunrise-cli)\n\n[![Build Status](https://travis-ci.org/AndreVarandas/sunrise-cli.svg?branch=master)](https://travis-ci.org/AndreVarandas/sunrise-cli)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/AndreVarandas/sunrise-cli/master.svg?style=flat-square)](https://codecov.io/gh/AndreVarandas/sunrise-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Known Vulnerabilities](https://snyk.io/test/github/AndreVarandas/sunrise-cli/badge.svg?targetFile=package.json)](https://snyk.io/test/github/AndreVarandas/sunrise-cli?targetFile=package.json)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/AndreVarandas/sunrise-cli/blob/master/LICENSE)\n\n## Motivation\nDevelopers rarely take their eyes from the terminal, completely disregarding what's it like outside. \n\nWith this cli I can now **easily** and quickly check how it is currently.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/AndreVarandas/sunrise-cli/master/art/meme.jpg\" alt=\"Me during the day meme\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n\u003e Note: you can also use `npx`! See example section.\n\nTo intall the cli run:\n\n```bash\n$ yarn global add @varandas/sunrise-cli\n\nOR with NPM\n\n$ npm install -g @varandas/sunrise-cli\n```\n\nAnd that's it, you're now empowered!\n\n## Usage\n\nIn order to check how it is outside, please just use the following command:\n\n```bash\n$ sunrise\n```\n\nThe cli also accepts a few arguments:\n\n- `--help` - get help on the cli usage.\n- `--lat` - specifies location latitude.\n- `--long` - specifies location longitude.\n- `--extended` - adds more details to the response.\n- `--ip` - specifies the ip to use for the location.\n\n\n### Example \n\nGet sunrise/sunset details for New York\n\nIf you're using npx as an alternative, you can replace `$ sunrise` with `$ npx @varandas/sunrise-cli`\nbefore passing in the arguments.\n\n```bash\n$ npx @varandas/sunrise-cli --lat 40.730610 --long -73.935242\n```\n\nWith global install\n\n```bash\n$ sunrise --lat 40.730610 --long -73.935242\n```\n\n## Response\n\nThe regular response includes:\n\n- Sunrise\n- Sunset\n- Solar Moon\n- Day Length\n\n```bash\n$ sunrise\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/AndreVarandas/sunrise-cli/master/art/default.png\" alt=\"Sunrise cli example call\"\u003e\n\u003c/p\u003e\n\nThe extended response includes:\n\n- Sunrise\n- Sunset\n- Solar Moon\n- Day Length\n- Civil Twilight Begin\n- Civil Twilight End\n- Nautical Twilight Begin\n- Nautical Twilight End\n- Astronomical Twilight Begin\n- Astronomical Twilight End\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/AndreVarandas/sunrise-cli/master/art/extended.png\" alt=\"Sunrise cli extended call\"\u003e\n\u003c/p\u003e\n\nIt is reaaaly extended, make sure you have a wide terminal window.\n\n## Credits\n\nThis project was only possible thanks to the awesome team at [Sunrise Sunset](https://sunrise-sunset.org/api).\n\n## LICENSE\n[MIT License](LICENSE)\n\nCopyright (c) 2020 André Varandas\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndreVarandas%2Fsunrise-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndreVarandas%2Fsunrise-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndreVarandas%2Fsunrise-cli/lists"}