git-account-switch-ssh
Version:
Git Account Switch (SSH)
14 lines (11 loc) • 321 B
text/typescript
import { homedir } from 'node:os';
import { existsSync, unlinkSync } from 'node:fs';
export const gas_cache_delete = async () => {
try {
const home = homedir();
const cache_path = `${home}/.gascache.json`;
if (existsSync(cache_path)) {
unlinkSync(cache_path);
}
} catch (error: unknown) {}
};