mirror of
https://github.com/wahyd4/upptime.git
synced 2026-08-19 01:56:29 +10:00
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import { readFile } from "fs-extra";
|
|
import { safeLoad } from "js-yaml";
|
|
import { join } from "path";
|
|
|
|
export const update = async () => {
|
|
const config = safeLoad(
|
|
await readFile(join(".", ".statusrc.yml"), "utf8")
|
|
) as { sites: string[] };
|
|
for await (const url of config.sites) {
|
|
console.log("Checking", url);
|
|
}
|
|
};
|
|
|
|
update();
|