initial commit

This commit is contained in:
RY4N
2026-03-27 00:33:48 +06:00
commit 3a63c75b3a
63 changed files with 6301 additions and 0 deletions

19
src/utils/saveHtml.ts Normal file
View File

@@ -0,0 +1,19 @@
import * as path from 'path';
const saveHtml = async (html: string, fileName: string) => {
console.log(html);
try {
const fullPath = path.join(import.meta.dir + '../../../htmls/' + fileName);
console.log(fullPath);
await Bun.write(fullPath, html);
} catch (error: unknown) {
if (error instanceof Error) {
console.log('something went wrong' + error.message);
}
}
};
export default saveHtml;