import fetch from 'node-fetch'; fetch('https://api.github.com/users', { method: 'GET', }) .then(response => response.json()) .then(data => { data.forEach(user => { console.log('Login: ', user.login); console.log('ID: ', user.id); console.log('Node ID: ', user.node_id); console.log('Avatar URL: ', user.avatar_url); console.log('Gravatar ID: ', user.gravatar_id); console.log('URL: ', user.url); console.log('HTML URL: ', user.html_url); console.log('Followers URL: ', user.followers_url); console.log('Following URL: ', user.following_url); console.log('Gists URL: ', user.gists_url); console.log('Starred URL: ', user.starred_url); console.log('Subscriptions URL: ', user.subscriptions_url); console.log('Organizations URL: ', user.organizations_url); console.log('Repos URL: ', user.repos_url); console.log('Events URL: ', user.events_url); console.log('Received Events URL: ', user.received_events_url); console.log('Type: ', user.type); console.log('Site Admin: ', user.site_admin); console.log('\n----------\n'); }); }) .catch((error) => console.error('Error:', error));