poku
Version:
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
17 lines (16 loc) • 625 B
TypeScript
import type { End, StartScriptOptions, StartServiceOptions } from '../../@types/background-process.js';
/** Starts a file in a background process (useful for servers, APIs, etc.) */
export declare const startService: (file: string, options?: StartServiceOptions) => Promise<{
end: End;
}>;
/**
*
* Starts a script (package.json) or task (deno.json) in a background process (useful for servers, APIs, etc.).
*
* ---
*
* By default it uses **npm**, but you can costumize it using the `runner` option.
*/
export declare const startScript: (script: string, options?: StartScriptOptions) => Promise<{
end: End;
}>;