Skip to content

Instantly share code, notes, and snippets.

View Git API query
{
search(query: "stars:>10000 language:javascript", type: REPOSITORY, first: 10) {
repositoryCount
edges {
node {
... on Repository {
name
diskUsage
description
stargazers {
@halkeand
halkeand / fetch-and-process.js
Last active Dec 15, 2017
fetch-and-process
View fetch-and-process.js
const render = (data) => console.log(data)
const apiUrl = 'https://jsonplaceholder.typicode.com/albums'
const fetchAsync = async (url) => {
let resp = await fetch(url)
let data = await resp.json()
return data
}
const fetchAndProcess = (url, process) => {