UNPKG

qrfi

Version:

A CLI Wi-Fi QR Code Generator.

23 lines (22 loc) 650 B
/// <reference types="node" /> export declare type WiFiOption = { authenticationType?: 'WEP' | 'WPA' | 'nopass' | ''; networkSSID: string; password?: string; hidden?: boolean; }; export declare type QROption = { format: 'ascii' | 'svg' | 'png'; }; export default class Qrfi { static defaultWiFiOption: WiFiOption; static defaultQROption: QROption; static escape: (str: string) => string; private authenticationType; private networkSSID; private password?; private hidden; constructor(wiFiOption: WiFiOption); toString: () => string; toQR: (option?: QROption) => Promise<string | Buffer>; }