0.15.0 • Published 7 months ago

@todesktop/plugin-exec v0.15.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

ToDesktop Exec

Bundle and execute exec files.

Installation

Install @todesktop/client-exec in your client-side application using

npm install @todesktop/client-exec

Installation of the plugin package is also necessary. Using the ToDesktop Builder interface, navigate to Plugins. Click on the Explore button for "File Exec" and install the package.

Usage

subscribe

Listen to debug, stdout, or stderr logs from your executable.

import { subscribe } from "@todesktop/client-exec";

subscribe((message) => {
  if (message.type === "debug") {
    // todesktop process log
  } else if (message.type === "stdout") {
    // stdout from executable
  } else if (message.type === "stderr") {
    // stderr from exectuable
  }
});

execute

Calling execute will execute the file. Make sure to call subscribe before execution if you would like to see the execution logs.

import { execute } from "@todesktop/client-exec";

await execute();
0.15.0

7 months ago

0.14.0

9 months ago

0.13.0

9 months ago

0.12.0

9 months ago

0.11.0

9 months ago

0.10.0

9 months ago

0.9.0

9 months ago

0.8.0

9 months ago

0.7.0

9 months ago

0.6.0

9 months ago

0.5.0

9 months ago

0.4.0

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago