UNPKG

onemon

Version:

Run a npm script as a deamon, once

24 lines (23 loc) 649 B
/// <reference types="node" /> import { StdioOptions } from 'child_process'; interface RunnerOptions { stdio?: StdioOptions; detached?: boolean; cwd?: string; shell?: boolean; } /** * @description * Wrapper arround child_process. */ declare class Runner { private stdio; private detached; private cwd; private shell; constructor(options: RunnerOptions); spawn(script: string): import("child_process").ChildProcess; fork(filePath: string, args: string[], forceColor?: boolean): import("child_process").ChildProcess; } declare const _default: (options: RunnerOptions) => Runner; export default _default;