@meat-nuggets/wireguard-tools
Version:
The best way to interact with WireGuard from Node
10 lines (9 loc) • 373 B
TypeScript
export interface Options {
/** Function to run when data is returned from exec */
onData?: (data: string) => any;
/** Function to run when error occurs */
onError?: (err: string) => any;
/** Function to run when exec ends */
onClose?: (code: number) => any;
}
export declare type execFunction = (command: string, opts?: Options) => Promise<string>;