vite-plugin-qrcode
Version:
Show QR code on server start
20 lines (17 loc) • 550 B
TypeScript
import { Plugin } from 'vite';
declare function qrcode(options?: PluginOptions): Plugin;
interface PluginOptions {
/**
* filter list of shown QR codes. Useful if you have multiple interfaces and only need one
*
* examples:
* url => url.startsWith('http://192.')
* url => !url.startsWith('http://172.)
* url => url === 'http://192.168.1.70:4173'
*
* @param url {string} ip address
* @returns {boolean}
*/
filter?: (url: string) => boolean;
}
export { type PluginOptions, qrcode };