Skip to content

Instantly share code, notes, and snippets.

View Zcoder4's full-sized avatar

kink zome Zcoder4

View GitHub Profile
import inquirer from 'inquirer';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
import { readdir, unlink, rm } from 'fs/promises';
import { existsSync } from 'fs';
@Zcoder4
Zcoder4 / update-proto.js
Created November 1, 2025 13:23 — forked from MuhammadRestu999/update-proto.js
Script to update WAProto on baileys module
/*
Script to update WAProto on baileys module (ESM Only)
Created by github.com/MuhammadRestu999
*/
import fs from "fs";
const text = async (url) => {
const res = await fetch(url);
const text = await res.text();
return text;