@urlpack/qrjson
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@urlpack/qrjson

Package Version License Bundle Size

Compress JSON data into compact & optimized to URL for QR Codes with numeric mode encoding

  • ES Modules & Browser compatible
  • Compact output using MessagePack
  • Use Base10 encoding to get clear QR Code (mode=numeric) image

Usage

import { makeQrJsonEncoder } from '@urlpack/qrjson';

const encoder = makeQrJsonEncoder();

encoder.encode({
  href: 'http://daangn.com',
  uid: 1234567,
  context: {
    foo: 'bar',
    baz: [1, 2, 3, 4, 5],
  },
});
// => '1605288693315933041592216384647639863862606035591552983841613971370651694842366403819686780144511394090067728031488880352135548504776147881624581'

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @urlpack/qrjson

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.2 kB

Total Files

14

Last publish

Collaborators

  • cometkim
  • kyoungduck