mikro-routeros
Version:
MikroTik API (RouterOS) client for Node.js with auto-parameter detection and response parsing. Works with PPPoE, Hotspot, and more.
13 lines (11 loc) • 350 B
TypeScript
export declare class RouterOSClient {
constructor(host: string, port?: number, timeout?: number);
connect(): Promise<void>;
login(username: string, password: string): Promise<any>;
runQuery<T = any>(
cmd: string,
params?: Record<string, string | number | boolean>
): Promise<T[]>;
close(): void;
}
export default RouterOSClient;