@mauriora/simpleprocess
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

SimpleProcess

Simple node child process wrapper for typescript

Description

Executes a process async redirecting all output to the default stdout/stderr.

export const simpleProcess = async (executable: string, args: string[] ): Promise<boolean>

Parameters

  • executable e.g. 'gulp'
  • args e.g. ['clean']
  • returns true if successfull otherwise false

Example

import { simpleProcess } from '@mauriora/simpleprocess';

const runServe = async (): Promise<boolean> => simpleProcess('gulp', ['serve', '--nobrowser']);

if( await runServe()) {
    exit(0);
} else {
    exit(1);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mauriora/simpleprocess

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

7.11 kB

Total Files

9

Last publish

Collaborators

  • denniskuhn