图像转换 image-to-totp是使用单个API从QR码图像生成totp码的库。 用法 npm install @thomaschaplin/image-to-totp 用法示例 import { imageToTotp } from "@thomaschaplin/image-to-totp" ; import * as path from "path" ; const example = async ( account : string ) => { const projectBaseFolder = path . join ( __dirname , "../" ) ; const imagesFolder = path . join ( projectBaseFolder , "examples/images" ) ; const totp = await ima