Skip to content

Instantly share code, notes, and snippets.

Last active July 22, 2022 05:59
What would you like to do?
Fetch a single gist from GitHub's REST API
const id = "<the-gist-id>";
.then(res => res.json())
.then(gist => {
const {createdAt, description} = gist;
console.log(`The ${description} gist was created at ${createdAt}!`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment