mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 15:07:41 +01:00
* cleanup scripts * Move helpers to package * Fixes scripts * Fix scripts * Formatting * Fix helpers import paths * Remove lucide-figma * Rename helpers package * Fix build * formatting * Adjust main build-icons file * Add export casing * Adds `exportModuleNameCasing` fro lab project * format files * Bump package version @lucide/build-icons * Revert changes in icons * Revert changes in PR yml * Fix lint issues * Fix site build * fix lint errors * Attempt fix linting * Fix lint errors
20 lines
398 B
JavaScript
20 lines
398 B
JavaScript
const githubApi = async (endpoint) => {
|
|
const headers = new Headers();
|
|
const username = 'ericfennis';
|
|
const password = process.env.GITHUB_API_KEY;
|
|
|
|
headers.set(
|
|
'Authorization',
|
|
`Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`,
|
|
);
|
|
|
|
const res = await fetch(endpoint, {
|
|
method: 'GET',
|
|
headers,
|
|
});
|
|
|
|
return res.json();
|
|
};
|
|
|
|
export default githubApi;
|