Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/getData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import millify from "millify";
import stats from "./fetcher/stats";
import repositoryStats from "./fetcher/repositoryStats";
const base64ImageFetcher = require("node-base64-image");
import { encode } from "node-base64-image";

/**
* Type representing GitHub user information.
Expand Down Expand Up @@ -61,7 +61,7 @@ async function getData(username: string): Promise<GetData> {
const output = {
username: user.login,
name: user.name,
picture: await base64ImageFetcher.encode(`${user.avatarUrl}&s=200`, {
picture: await encode(`${user.avatarUrl}&s=200`, {
string: true
}),
public_repos: millify(user.repositories.totalCount),
Expand Down
Loading