Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afine970/vite-plugin-qrcode-terminal
This is a vite plugin can help you output QR codes on the terminal
https://github.com/afine970/vite-plugin-qrcode-terminal
qrcode vite vite-plugin
Last synced: about 3 hours ago
JSON representation
This is a vite plugin can help you output QR codes on the terminal
- Host: GitHub
- URL: https://github.com/afine970/vite-plugin-qrcode-terminal
- Owner: AFine970
- License: mit
- Created: 2022-09-04T14:39:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T09:37:00.000Z (over 1 year ago)
- Last Synced: 2024-04-25T09:01:03.668Z (10 months ago)
- Topics: qrcode, vite, vite-plugin
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-qrcode-terminal
> This vite plugin can help you output QR codes on the terminal
## Install
```bash
yarn add vite-plugin-qrcode-terminal -D
# or
npm install vite-plugin-qrcode-terminal -D
```## Usage
```js
// vite.config.jsimport { 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
```ts
import { Plugin } from 'vite';interface PluginOption {
content?: string;
small?: boolean;
}
declare function vitePluginQrcodeTerminal(params?: PluginOption): Plugin;export { PluginOption, vitePluginQrcodeTerminal };
```