nextui/apps/docs/utils/get-all-sponsors.ts

13 lines
308 B
TypeScript

import path from "path";
import fs from "fs";
/**
* Read the information for each sponsor from `.all-sponsorsrc` file
*/
export function getAllSponsors() {
const sponsorsRcPath = path.resolve(".sponsorsrc");
const sponsors = JSON.parse(fs.readFileSync(sponsorsRcPath, "utf-8"));
return sponsors;
}