UNPKG

@qr-platform/qr-code.js

Version:

QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you

2 lines (1 loc) 260 B
import{writeFile as o}from"fs/promises";import{Image as t,ImageKind as i}from"image-js";async function n(n,r,a,f,m=!1){let e;e=new t(r,a,n,m?{kind:i.GREY}:{kind:i.RGBA});const s=await e.toBuffer({format:"png"});await o(f,s)}export{n as saveDebugImageImageJs};