UNPKG

@sinedied/mini-scraper

Version:

Artwork scraper for handheld emulators.

14 lines (13 loc) 316 B
import fs from 'node:fs/promises'; export async function pathExists(targetPath) { try { await fs.access(targetPath); return true; } catch { return false; } } export function sanitizeName(name) { return name.replaceAll(/^\d+\)\s*/g, '').replaceAll(/[&*/:`<>?|"]/g, '_'); }