starlight-qrcode
v1.0.0
Published
Generate and display QR codes in the terminal for Starlight projects
Downloads
13
Maintainers
Readme
Dominex Macedon - starlight-qrcode Module
Description: This module generates QR codes that can be displayed in the terminal.
Functions
generateQRCode(text, small = false) Generates a QR code string for the given text.
- (green) text: The content to encode.
- (green) small: Optional boolean for small QR code.
- Returns the QR code as a string.
printQRCode(text, small = false) Generates a QR code and prints it directly to the terminal.
- (green) text: The content to encode.
- (green) small: Optional boolean for small QR code.
- Prints and returns the QR code.
Example Usage
(cyan) import { generateQRCode, printQRCode } from "starlight-qrcode"
const qr = await generateQRCode("https://example.com") printQRCode("Hello World!", true)
