Skip to content

mauriora/SimpleProcess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

Simple node child process wrapper for typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published