import { existsSync, unlinkSync } from "node:fs"; export const UnixSocketPath = { deleteIfExists (path: any) { if(!path) { return; } if(/^\d+$/i.test(path)) { return; } if(existsSync(path)) { unlinkSync(path); } } }