Find Similar Packages for @electron-forge/core
@electron-forge/coreSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on @electron-forge/core's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of @electron-forge/core](https://npm-compare.com/img/npm-trend/THREE_YEARS/@electron-forge/core.png)](https://npm-compare.com/@electron-forge/core#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
@electron-forge/core199,189
6,867422 kB252a month agoMIT
README for @electron-forge/core

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.