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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

51e862f · May 29, 2023

History

13 Commits
Sep 30, 2022
Sep 30, 2022
Sep 4, 2022
Sep 4, 2022
Sep 4, 2022
Sep 30, 2022
May 29, 2023
Sep 30, 2022
Sep 30, 2022
Sep 4, 2022
Sep 4, 2022
Sep 30, 2022

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