
Public
Like
5
github-user-email
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v164View latest version
It's an open secret that you can find the email address from most GitHub users:
it's in the git commit history! In the past, I would close repos and use
git log
to pull it out, but recently I learned that you can do it fairly
easily via the GitHub API.
The following emailFromEvents
function
import { emailFromEvents } from "https://esm.town/v/stevekrouse/github-user-email/events.ts";
const emails = await emailFromEvents("stevekrouse");
console.log(emails); // [ "steveykrouse@gmail.com" ]