New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

exeup

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exeup

Exeup: Pack up and bundle your Node.js project into a single .exe file for easy distribution and hassle-free execution on Windows!

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
0
Created
Source

Exeup

Exeup: Pack up and bundle your Node.js project into a single .exe file for easy distribution and hassle-free execution on Windows!

📌 Table of Contents

  • Installation
  • Usage
  • Configuration (CLI Only)
  • Options
  • License

🚀 Installation

Install as a CLI Tool

To install Exeup globally, run:

npm install -g exeup

Install as a Developer Dependency

To use Exeup within a Node.js project:

npm install -D exeup

🔧 Usage

Using the CLI

Once installed, you can use the exeup command to package your Node.js project into an executable file.

Initialize Configuration

Before building, configure Exeup by running:

exeup config

This will prompt you for essential configuration details, such as the entry file, output path, version, and execution level.

Build an Executable

To create an executable from your project:

exeup build

Check Version

To check the installed version of Exeup:

exeup version

View Help

For a list of available commands:

exeup help

Using the npm Package

Exeup can be used programmatically within your Node.js project.

Example Usage

const exeup = require('exeup');

const options = {
    entry: './index.js',
    out: './build/myapp.exe',
    version: '1.0.0',
    icon: './assets/icon.ico',
    skipBundle: false,
    executionLevel: 'asInvoker',
    properties: {
        FileDescription: 'My Application',
        ProductName: 'MyApp',
        LegalCopyright: 'My Company',
        OriginalFilename: 'myapp.exe',
    }
};

exeup(options, (progressData) => {
    console.log(`${progressData.progress}% - ${progressData.message}`);
    if (progressData.done) {
        console.log('Executable successfully created!');
    }
}).catch(console.error);

⚙️ Configuration (CLI Only)

The CLI tool relies on a configuration file (exeup.config.json). You can generate this file using:

exeup config

Example exeup.config.json:

{
    "entry": "./index.js",
    "out": "./build/myapp.exe",
    "version": "1.0.0",
    "icon": "./assets/icon.ico",
    "skipBundle": false,
    "executionLevel": "asInvoker",
    "properties": {
        "FileDescription": "My Application",
        "ProductName": "MyApp",
        "LegalCopyright": "My Company",
        "OriginalFilename": "myapp.exe"
    }
}

⚡ Options

OptionTypeCLI OnlyDescription
entryStringNoThe entry file of your application.
outStringNoThe output file path for the generated executable.
versionStringNoThe application version number.
iconStringNoThe path to an .ico or .png file for the application icon.
skipBundleBooleanNoIf true, skips the bundling process.
executionLevelStringNoSets execution privileges (asInvoker, highestAvailable, or requireAdministrator).
propertiesObjectNoCustom metadata (e.g., FileDescription, ProductName).
exeup.config.jsonFileYesThe CLI configuration file. Not required when using Exeup as a package.

📜 License

Exeup is licensed under the MIT License. See the LICENSE file for more details.

📂 Source Code

Find the source code on GitHub: Sectly/Exeup

Keywords

exe

FAQs

Package last updated on 11 Feb 2025

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