Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fancy-qrcode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-qrcode

A fancy QR code generator based on SVG

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Fancy QRCode

This repo is derive from ciaochaos/qrbtf. It extended more styles, and change the API of Options.

Preview

Below all QRCodes generate by Fancy QRCode.

Features

  • 🖼️ SVG Based QRCode Generator
  • ✨ Zero Dependencies
  • 🃏 Built-in render poker card symbol in QRCode eyeball
  • ☕ Built-in render emoji symbol in QRCode eyeball
  • 🎨 Custom Render QRCode Style Friendly
  • 🤹 Custom Render QRCode Eyeframe & Eyeball style
  • 🔵 Custom Render your icon in the center of QRCode

Install

pnpm install fancy-qrcode -S
or
yarn add fancy-qrcode -S

Usage

Render Base

renderBase function also called createQRCode

import { renderBase } from 'fancy-qrcode'

const QRCode = renderBase()
// or
const QRCode = createQRCode()

Typed

interface BaseRendererOptions {
  eyeframeType?: EyeframeType | string;
  eyeballType?: EyeballType | string;
  eyeColor?: string;
  type: BodyType$3 | string;
  bodyColor?: string;
  emojiSymbol?: string;
}

declare const createQRCode: (props?: DeepPartial<RendererOptions<BaseQROptions>> | undefined) => string;

Render Circle

import { renderCircle } from 'fancy-qrcode'

const QRCode = renderCircle()

Render DSJ

import { renderDsj } from 'fancy-qrcode'

const QRCode = renderDsj()

Render Func

import { renderFunc } from 'fancy-qrcode'

const QRCode = renderFunc()

Render ImageFill

import { renderImageFill } from 'fancy-qrcode'

const QRCode = renderImageFill()

Render Image

import { renderImage } from 'fancy-qrcode'

const QRCode = renderImage()

RenderrLine

import { renderLine } from 'fancy-qrcode'

const QRCode = renderLine()

RenderrRandRect

import { renderRandRect } from 'fancy-qrcode'

const QRCode = renderRandRect()

RenderrResImage

import { renderResImage } from 'fancy-qrcode'

const QRCode = renderResImage()

RenderrSolid

import { renderSolid } from 'fancy-qrcode'

const QRCode = renderSolid()

License

MIT @xiaoluoboding

Keywords

FAQs

Package last updated on 13 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc