🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@sec-ant/ansi-qr-code

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@sec-ant/ansi-qr-code

Make Qr Codes suited for the terminal

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@sec-ant/ansi-qr-code

Make Qr Codes suited for the terminal.

ansi-qr-code-demo

Install

npm i @sec-ant/ansi-qr-code

Usage

import {
  makeAnsiQrCode,
  makeSmallAnsiQrCode,
  Ecc,
  BG_BRIGHT_GREEN,
  BG_BLUE,
  FG_RED,
  RESET,
} from "@sec-ant/ansi-qr-code";

const { value: bigValue, size: bigSize } = makeAnsiQrCode("Hello, world!", {
  ecc: Ecc.LOW,
  border: 1,
  blackModuleColor: BG_BLUE,
  whiteModuleColor: BG_BRIGHT_GREEN,
});

console.log(bigValue, bigSize);

const { value: smallValue, size: smallSize } = makeSmallAnsiQrCode(
  "Hello, world!",
  {
    ecc: Ecc.HIGH,
    border: 4,
    blackModuleColor: FG_RED,
    whiteModuleColor: RESET,
  },
);

console.log(smallValue, smallSize);

License

MIT

Keywords

typescript

FAQs

Package last updated on 23 Aug 2023

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