/** * plainovh Url Checker & link analyzer * base: https://plain.ovh * Creator: ShanMolvyr * Jangan Hapus Kreator hargai creator LAH hehe * Note: cek https://snippet.vyr.my.id/shanmolvyr/plainovh/README.md * Sumber: https://whatsapp.com/channel/0029VbB4Kw8EFeXfeExaXc3Q */ import { argv } from "process"; const BASE = "https://plain.ovh"; async function analyze(url) { const encoded = encodeURIComponent(url); const res = await fetch(`${BASE}/api/analyze?url=${encoded}`, { headers: { accept: "*/*", "accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7", "cache-control": "no-cache", pragma: "no-cache", priority: "u=1, i", referer: `${BASE}/?url=${encoded}`, "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "user-agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36", }, }); if (!res.ok) throw new Error(`HTTP ${res.status}`); return res.json(); } export { analyze }; const url = argv[2]; if (url) { analyze(url) .then((data) => console.log(JSON.stringify(data, null, 2))) .catch((e) => { console.error(e.message); process.exit(1); }); }