Skip to content

This is a vite plugin can help you output QR codes on the terminal

License

Notifications You must be signed in to change notification settings

AFine970/vite-plugin-qrcode-terminal

Repository files navigation

vite-plugin-qrcode-terminal

This vite plugin can help you output QR codes on the terminal

Install

yarn add vite-plugin-qrcode-terminal -D
# or
npm install vite-plugin-qrcode-terminal -D

Usage

// vite.config.js

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { vitePluginQrcodeTerminal } from 'vite-plugin-qrcode-terminal';

export default defineConfig({
  plugins: [vue(), vitePluginQrcodeTerminal()],
  server: {
    host: '0.0.0.0',
    open: '/ok/test/ok.html',
  },
});

Setup the server, QR codes out in the terminal.

Interface

import { Plugin } from 'vite';

interface PluginOption {
  content?: string;
  small?: boolean;
}
declare function vitePluginQrcodeTerminal(params?: PluginOption): Plugin;

export { PluginOption, vitePluginQrcodeTerminal };

About

This is a vite plugin can help you output QR codes on the terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published