spawnd
TypeScript icon, indicating that this package has built-in type declarations

11.0.0 • Public • Published

spawnd

npm version npm dm npm dt

Spawn a process inter-dependent with parent process.

npm install spawnd

Usage

import { spawnd } from "spawnd";

const proc = spawnd("node server.js", { shell: true });

proc.destroy().then(() => {
  console.log("Destroyed!");
});

API

spawnd(command[, args[, options]])

Exactly the same API as Node.js spawn.

It returns a Child Process that exposes a destroy method that will kill the process.

/spawnd/

    Package Sidebar

    Install

    npm i spawnd

    Weekly Downloads

    1,537,747

    Version

    11.0.0

    License

    MIT

    Unpacked Size

    4.75 kB

    Total Files

    5

    Last publish

    Collaborators

    • neoziro
    • tonybrix