0.4.2 • Published 4 years ago

@mscs/process v0.4.2

Weekly downloads
46
License
MIT
Repository
github
Last release
4 years ago

@mscs/process

This is a library to handle child processes in typescript for node.

Installation

$ yarn add @mscs/process

Usage

Short example:

import { Process } from "@mscs/process";

async function runtime() {
    const listDirectoryProcess = new Process(["ls", "-lar"]);
    const exitCode = await listDirectoryProcess.run();

    if(listDirectoryProcess.isSuccessful()){
        const output = listDirectoryProcess.getOutput();
        // ...
    } else {
        const output = listDirectoryProcess.getErrorOutput();
        // ...    
    }
}

runtime().catch(error => {
    console.log(error);
    process.exit(1);
});

Important note

Since Symfony is, for good reason, a registered trademark, please take note that we are in no way associated with the Symfony brand or the SensioLabs organization. Therefore, we don't represent or speak for any of them.

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago