1

Initial commit

This commit is contained in:
2025-03-28 12:57:37 +01:00
commit ed9ddcfdc8
1841 changed files with 42303 additions and 0 deletions

21
tools/test_archive.js Normal file
View File

@@ -0,0 +1,21 @@
const { getArchiveUrl, saveToArchive } = require("./lib/archive");
(async () => {
const testUrl = "https://richard.dern.ovh";
console.log(`🔍 Checking Archive.org for: ${testUrl}`);
let archiveUrl = await getArchiveUrl(testUrl);
if (archiveUrl) {
console.log(`✔ Archive found: ${archiveUrl}`);
} else {
console.log(`❌ No archive found, requesting a new one...`);
archiveUrl = await saveToArchive(testUrl);
if (archiveUrl) {
console.log(`✔ URL successfully archived: ${archiveUrl}`);
} else {
console.log(`❌ Failed to archive the URL.`);
}
}
})();