UNPKG

@electron-forge/core

Version:

A complete tool for building modern Electron applications

11 lines (10 loc) 282 B
export default function isInstalled(pkg: string): boolean { try { // eslint-disable-next-line @typescript-eslint/no-require-imports require(pkg); return true; } catch { // Package doesn't exist -- must not be installable on this platform return false; } }