Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electron-forge/core

Package Overview
Dependencies
Maintainers
5
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-forge/core

A complete tool for building modern Electron applications

  • 7.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
131K
decreased by-5.97%
Maintainers
5
Weekly downloads
 
Created
Source

Electron Forge Core

This module contains the core logic of Electron Forge and exposes the base API as a number of simple JS functions.

Basic Usage

import { api } from '@electron-forge/core';

// Package the current directory as an Electron app
api.package(__dirname);

The named export api has it's methods documented over at ForgeAPI. All the methods are async and expose the core forge methods, please note that all user-side configuration is still done through your forge config file or the "config.forge" section of your package.json. This API simply let's you call the methods in node land without using the CLI.

Error Handling

As all methods return a promise you should handle all rejections, you should note that rejections will not always be errors, in fact we commonly reject our promises with just strings so do not assume that properties such as stack or message will exist on thrown errors.

FAQs

Package last updated on 20 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc