{"id":23201036,"url":"https://github.com/codedotjs/apod-nasa","last_synced_at":"2025-04-05T09:26:16.193Z","repository":{"id":57182231,"uuid":"96117936","full_name":"CodeDotJS/apod-nasa","owner":"CodeDotJS","description":":earth_americas: Astronomy Picture of the Day!","archived":false,"fork":false,"pushed_at":"2019-02-11T19:01:30.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:16.624Z","etag":null,"topics":["api","day","extract","fetch","nodejs","picture","picture-of-the-day","scrap"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/CodeDotJS.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}},"created_at":"2017-07-03T14:11:48.000Z","updated_at":"2022-03-23T06:08:13.000Z","dependencies_parsed_at":"2022-09-14T06:10:46.667Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/apod-nasa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fapod-nasa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fapod-nasa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fapod-nasa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Fapod-nasa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/apod-nasa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314505,"owners_count":20918851,"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":["api","day","extract","fetch","nodejs","picture","picture-of-the-day","scrap"],"created_at":"2024-12-18T15:13:42.871Z","updated_at":"2025-04-05T09:26:16.169Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/rishigiridotcom/rishigiri.com/71200156248c8ba2babbf387b0c0bd67e184ee17/github/apod-nasa.png\"\u003e\n\u003ca href=\"https://travis-ci.org/CodeDotJS/apod-nasa\"\u003e\u003cimg src=\"https://travis-ci.org/CodeDotJS/apod-nasa.svg?branch=master\"\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\"\u003e\n\u003c/h1\u003e\n\n## Install\n```\n$ npm install --save apod-nasa\n```\n## Usage\n- __`For current date`__\n```js\nconst apod = require('apod-nasa');\n\napod().then(data =\u003e {\n  console.log(data);\n\t/*\n\t  {\n\t    title: 'The Summer Triangle over the Great Wall',\n\t    image: 'https://apod.nasa.gov/apod/image/1707/GreatWallMilkyWay_Yu_1686.jpg'\n\t  }\n\t*/\n});\n```\n- __`For specific date`__\n```js\napod.date('951010').then(data =\u003e {\n\tconsole.log(data);\n\t/*\n\t{\n\t\tday: 'October 10, 1995',\n\t\ttitle: 'Dione\\'s Lagrange Moon Helene',\n\t\timage: 'https://apod.nasa.gov/apod/image/helene_vg2.gif'\n\t}\n\t*/\n});\n```\n\n#### __`Date`__\n\nIn `apod.date()` the following format is only supported format -\n\n- __`yy/mm/dd`__\n\n__`Example : `__\n\n- For `16th of March, 1998`  `:` __`980316`__\n- For `1st January, 2000` `:`  __`000101`__\n\n__NOTE :__\n\n__[`APOD-NASA`](https://apod.nasa.gov/apod/)__ started to post pictures since __`June 16, 1995`__ , so the least date will be  __`950616`__ and max will be the __`current date`__\n\n## API\n\n- __`apod()`__\n\n- __`apod.date('date')`__\n\n__`date`__\n`Type :` __`string`__\n\n`Format :` __`yy/mm/dd`__\n\n## Related\n\n- __[`apod`](https://github.com/CodeDotJS/apod)__ `: Astronomy Picture of the Day form command line done right!`\n\n## License\n\nMIT \u0026copy; [Rishi Giri](http://codedotjs.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fapod-nasa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Fapod-nasa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Fapod-nasa/lists"}