{"id":13689236,"url":"https://github.com/mike182uk/fetch-gists","last_synced_at":"2025-05-01T23:33:03.848Z","repository":{"id":3394632,"uuid":"49324515","full_name":"mike182uk/fetch-gists","owner":"mike182uk","description":"Fetch all of your gists from GitHub","archived":true,"fork":false,"pushed_at":"2023-04-27T20:55:14.000Z","size":642,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-03T15:16:36.579Z","etag":null,"topics":["gist","github"],"latest_commit_sha":null,"homepage":"","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/mike182uk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-09T13:03:44.000Z","updated_at":"2023-04-27T20:55:27.000Z","dependencies_parsed_at":"2023-02-18T08:01:15.726Z","dependency_job_id":null,"html_url":"https://github.com/mike182uk/fetch-gists","commit_stats":{"total_commits":164,"total_committers":8,"mean_commits":20.5,"dds":0.7560975609756098,"last_synced_commit":"72d3144a73eae65751283621951e0259b53450db"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike182uk%2Ffetch-gists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike182uk%2Ffetch-gists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike182uk%2Ffetch-gists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike182uk%2Ffetch-gists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike182uk","download_url":"https://codeload.github.com/mike182uk/fetch-gists/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224282190,"owners_count":17285786,"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":["gist","github"],"created_at":"2024-08-02T15:01:39.518Z","updated_at":"2024-11-12T13:31:07.141Z","avatar_url":"https://github.com/mike182uk.png","language":"JavaScript","funding_links":[],"categories":["github"],"sub_categories":[],"readme":"#### ⚠️ This project is no longer maintained\n\n# fetch-gists\n\n[![Version](https://img.shields.io/npm/v/fetch-gists.svg?style=flat-square)](https://www.npmjs.com/package/fetch-gists)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/mike182uk/fetch-gists/ci.yml?branch=main\u0026style=flat-square)](https://github.com/mike182uk/fetch-gists/actions/workflows/ci.yml?query=workflow%3ACI)\n[![Coveralls](https://img.shields.io/coveralls/mike182uk/fetch-gists/main.svg?style=flat-square)](https://coveralls.io/r/mike182uk/fetch-gists)\n[![npm](https://img.shields.io/npm/dm/fetch-gists.svg?style=flat-square)](https://www.npmjs.com/package/fetch-gists)\n[![License](https://img.shields.io/github/license/mike182uk/fetch-gists.svg?style=flat-square)](https://www.npmjs.com/package/fetch-gists)\n\nFetch all of your gists from GitHub.\n\n`fetch-gists` will handle all of the API calls needed to retrieve all of your gists from GitHub. This includes navigating the paginated results.\n\n## Prerequisites\n\n- GitHub account (duh!)\n- GitHub [access token](https://github.com/blog/1509-personal-api-tokens) with the `gist` scope enabled\n\n## Installation\n\n```bash\nnpm install --save fetch-gists\n```\n\n## Usage\n\n```js\nconst fetchGists = require('fetch-gists')\n\nconst accessToken = '\u003cyour-github-access-token\u003e'\n\ntry {\n  const gists = await fetchGists(accessToken)\n\n  // gists successfully retrieved\n} catch (err) {\n  // something went wrong\n}\n```\n\n`fetchGists` will return a promise. The promise will resolve once all gists for the account have been retrieved. Any errors that occur during the retrieval of the gists will cause the promise to reject.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike182uk%2Ffetch-gists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike182uk%2Ffetch-gists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike182uk%2Ffetch-gists/lists"}