All Projects → svitejs → vite-plugin-qrcode

svitejs / vite-plugin-qrcode

Licence: MIT License
Show QR code on server start

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
Svelte
593 projects
shell
77523 projects

vite-plugin-qrcode

npm version CI

Show QR code on server start.

Installation

npm install --save-dev vite-plugin-qrcode

Usage

// vite.config.js
import { qrcode } from 'vite-plugin-qrcode';

export default defineConfig({
	plugins: [
		qrcode() // only applies in dev mode
	]
});
# start vite with host to show qrcode
vite --host

  vite v2.6.1 dev server running at:

  > Local:    http://localhost:3000/
  > Network:  http://192.168.2.169:3000/

  ready in 186ms.

  Visit page on mobile:
  http://192.168.2.169:3000/
  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  █ ▄▄▄▄▄ ██▄▄ ▀▄██▄█ ▄▄▄▄▄ █
  █ █   █ █▀▄  █▀ ▀ █ █   █ █
  █ █▄▄▄█ █▄▀ █▄▀ ███ █▄▄▄█ █
  █▄▄▄▄▄▄▄█▄▀▄█ █▄▀▄█▄▄▄▄▄▄▄█
  █ ▄██▀ ▄ █▄ █▄ █  ▀██  ▀▀██
  ██▄▀▀█▀▄▄█▄▀ ▄█▀ ▀█▄▄▀ █▄ █
  █ ▀ ▄▄ ▄██▄ █ ▀ ▀▄▄▄████▀▄█
  █ █▀▄█ ▄    ▀█▄▀▄▀▄█▄▀▄▀▄ █
  █▄█████▄█▀█▄  ▄▀▀ ▄▄▄ █ ███
  █ ▄▄▄▄▄ █ ██▄ █ █ █▄█ ▄██▄█
  █ █   █ ██▀ ▀▀▄█▄▄▄  ▄ ▄▀▀█
  █ █▄▄▄█ █▀█▄█ ██▀▀▄▀▀▀█▄█ █
  █▄▄▄▄▄▄▄█▄██▄██▄▄▄█▄██▄██▄█

Packages

Package Changelog
vite-plugin-qrcode Changelog

Development

  • pnpm i to install dependencies
  • pnpm dev to run development build
  • pnpm test to run tests
  • pnpm build to run build

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].