Name Description Size
encoder.mjs There are many "versions" of QR codes, which describes how many dots appear in the resulting image, thus limiting the amount of data that can be represented. It expects you to pick a version large enough to contain your message. Here we search for the mimimum version based on the message length. @param {string} message Text to encode @param {string} errorCorrectionLevelChar The higher the error correction level, the less the storage capacity, but the greater probability of successful data retrieval on the resulting QR Code if it's damaged or obscured. The errorCorrectionLevelChar must be one of: - "L" (low error correction) - "M" (medium error correction) - "Q" (quartile error correction) - "H" (high error correction) @returns {integer} 3394
moz.build 351
tests