MCPcopy Index your code
hub / github.com/gtanner/qrcode-terminal

github.com/gtanner/qrcode-terminal @0.12.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.12.0 ↗ · + Follow
6 symbols 11 edges 6 files 0 documented · 0% 50 cross-repo links updated 4y ago★ 1,34718 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

QRCode Terminal Edition Build Status

Going where no QRCode has gone before.

Basic Example

Node Library

Install

Can be installed with:

$ npm install qrcode-terminal

and used:

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

Usage

To display some data to the terminal just call:

qrcode.generate('This will be a QRCode, eh!');

You can even specify the error level (default is 'L'):

qrcode.setErrorLevel('Q');
qrcode.generate('This will be a QRCode with error level Q!');

If you don't want to display to the terminal but just want to string you can provide a callback:

qrcode.generate('http://github.com', function (qrcode) {
    console.log(qrcode);
});

If you want to display small output, provide opts with small:

qrcode.generate('This will be a small QRCode, eh!', {small: true});

qrcode.generate('This will be a small QRCode, eh!', {small: true}, function (qrcode) {
    console.log(qrcode)
});

Command-Line

Install

$ npm install -g qrcode-terminal

Usage

$ qrcode-terminal --help
$ qrcode-terminal 'http://github.com'
$ echo 'http://github.com' | qrcode-terminal

Support

  • OS X
  • Linux
  • Windows

Server-side

node-qrcode is a popular server-side QRCode generator that renders to a canvas object.

Developing

To setup the development envrionment run npm install

To run tests run npm test

Contributers

Gord Tanner <gtanner@gmail.com>
Micheal Brooks <michael@michaelbrooks.ca>

Core symbols most depended-on inside this repo

repeat
called by 3
lib/main.js
handleInput
called by 2
bin/qrcode-terminal.js
fill
called by 1
lib/main.js
help
called by 1
bin/qrcode-terminal.js
version
called by 1
bin/qrcode-terminal.js
toCell
called by 0
lib/main.js

Shape

Function 6

Languages

TypeScript100%

Modules by API surface

lib/main.js3 symbols
bin/qrcode-terminal.js3 symbols

For agents

$ claude mcp add qrcode-terminal \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page