🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

terminal-img-qrcode

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terminal-img-qrcode

renders an image to the terminal.

0.1.1
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

二维码图片渲染到终端展示

主要用途,还是将生成的二维码图片渲染到终端展示,应用场景的话,比如小程序自动化,不依赖开发者工具等 打印到终端的二维码可以及时展示,及时调试,方便测试,方便自动化部署等

Installation

npm install terminal-img-qrcode

Usage

var terminalImgQrcode = require('terminal-img-qrcode');

Passing image data in node

var terminalImgQrcode = require("terminal-img-qrcode");
var buffer = fs.readFileSync(__dirname + '/image.png');
terminalImgQrcode(buffer)

API

terminalImage(image)

Get the image as a string that you can log manually.

image

Type: string | Buffer

File path to an image or an image as a buffer.

Keywords

terminal

FAQs

Package last updated on 26 May 2021

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