enigmavirtualbox

0.9.10 • Public • Published

Node-EnigmaVirtualBox

Node API and CLI for executing Windows tool Enigma Virtual Box to bundle executable with data files.

Abstract

This is a Node API and CLI for executing the excellent Windows tool Enigma Virtual Box from within JavaScript. The essential point of this Node extension is not primarily to just abstract away the asynchronous CLI execution. Instead there are two other major points: First, this Node extension provides a fixed dependency, as other Node extensions which require Enigma Virtual Box under Windows can just depend (via their NPM package.json file) onto this extension. Second, as this Node extension automatically downloads, locally installs and uses an Enigma Virtual Box distribution, there is no need for any previously available system-wide Enigma Virtual Box installation. Just depend on this Node extension and Enigma Virtual Box is available!

Notice

Enigma Virtual Box is a tool available for Windows only! Hence, running the Enigma Virtual Box CLI and GUI requires this Node module to be used under a Windows run-time platform, of course. Only the built-in configuration file generator can be used on any platform.

Installation

Use the Node Package Manager (NPM) to install this module locally (default) or globally (with option -g):

$ npm install [-g] enigmavirtualbox

Usage

var evb = require("enigmavirtualbox");
evb.gen(<arg>[, <arg>, ...]).then(...);
evb.gui(<arg>[, <arg>, ...]).then(...);   // requires Windows run-time platform
evb.cli(<arg>[, <arg>, ...]).then(...);   // requires Windows run-time platform
$ enigmavirtualbox gen <arg> [<arg> ...]
$ enigmavirtualbox gui <arg> [<arg> ...]  # requires Windows run-time platform 
$ enigmavirtualbox cli <arg> [<arg> ...]  # requires Windows run-time platform 

Examples

var evb = require("enigmavirtualbox");
evb.gen("app.evp", "app-bundled.exe", "app.exe", "app.dat").then(...);
evb.gui("app.evp").then(...);
evb.cli("app.evp").then(...);
# run the generator to create a new standard configuration 
$ enigmavirtualbox gen app.evp app-bundled.exe app.exe app.dat
 
# run the GUI to create/modify a new/existing configuration 
$ enigmavirtualbox gui [app.evp]
 
# runt the CLI to pack application according to configuration 
$ enigmavirtualbox cli app.evp

License

Copyright (c) 2014-2020 Dr. Ralf S. Engelschall (http://engelschall.com/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package Sidebar

Install

npm i enigmavirtualbox

Weekly Downloads

1

Version

0.9.10

License

MIT

Unpacked Size

36.2 kB

Total Files

10

Last publish

Collaborators

  • rse