MCPcopy Create free account
hub / github.com/pingdotgg/t3code / encodeText

Method encodeText

packages/shared/src/qrCode.ts:59–62  ·  view source on GitHub ↗
(text: string, ecl: QrCodeEcc)

Source from the content-addressed store, hash-verified

57 // QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the
58 // ecl argument if it can be done without increasing the version.
59 public static encodeText(text: string, ecl: QrCodeEcc): QrCode {
60 const segs: Array<QrSegment> = QrSegment.makeSegments(text);
61 return QrCode.encodeSegments(segs, ecl);
62 }
63
64 // Returns a QR Code representing the given binary data at the given error correction level.
65 // This function always encodes using the binary segment mode, not any text mode. The maximum number of

Callers 10

runWslShellFunction · 0.80
processRunner.tsFile · 0.80
renderTerminalQrCodeFunction · 0.80
makeHandleFunction · 0.80
qr-code.tsxFile · 0.80

Calls 2

makeSegmentsMethod · 0.80
encodeSegmentsMethod · 0.80

Tested by 1

makeHandleFunction · 0.64