UNPKG

@electron-forge/core

Version:

A complete tool for building modern Electron applications

10 lines (9 loc) 212 B
export default function isInstalled(pkg: string): boolean { try { require(pkg); return true; } catch { // Package doesn't exist -- must not be installable on this platform return false; } }