getPresences.js 913 B

123456
  1. import { readFile } from "fs/promises";
  2. import { globby } from "globby";
  3. export default async function getPresences() {
  4. return await Promise.all((await globby("websites/*/*/metadata.json")).map(async (s) => JSON.parse(await readFile(s, "utf-8"))));
  5. }
  6. //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0UHJlc2VuY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Z1bmN0aW9ucy9nZXRQcmVzZW5jZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN2QyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRWhDLE1BQU0sQ0FBQyxPQUFPLENBQUMsS0FBSyxVQUFVLFlBQVk7SUFDekMsT0FBTyxNQUFNLE9BQU8sQ0FBQyxHQUFHLENBQ3ZCLENBQ0MsTUFBTSxNQUFNLENBQUMsNEJBQTRCLENBQUMsQ0FDMUMsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFDLENBQUMsRUFBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLFFBQVEsQ0FBQyxDQUFDLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUN4RCxDQUFDO0FBQ0gsQ0FBQyJ9