sanemat / workers-qr

https://workers-qr.sanemat.workers.dev/
Apache License 2.0
1 stars 0 forks source link

qrcode #23

Open sanemat opened 3 years ago

sanemat commented 3 years ago

https://developers.cloudflare.com/workers/tutorials/build-a-qr-code-generator

sanemat commented 3 years ago
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
fs (imported by node_modules/qrcode/lib/renderer/png.js, node_modules/qrcode/lib/renderer/utf8.js, node_modules/qrcode/lib/renderer/svg.js, fs?commonjs-external)
buffer (imported by node_modules/qrcode/lib/core/reed-solomon-encoder.js, buffer?commonjs-external, node_modules/pngjs/lib/sync-inflate.js)
util (imported by node_modules/pngjs/lib/png.js, node_modules/pngjs/lib/parser-async.js, node_modules/pngjs/lib/packer-async.js, util?commonjs-external, node_modules/pngjs/lib/filter-parse-async.js, node_modules/pngjs/lib/chunkstream.js, node_modules/pngjs/lib/sync-inflate.js)
stream (imported by node_modules/pngjs/lib/png.js, node_modules/pngjs/lib/packer-async.js, stream?commonjs-external, node_modules/pngjs/lib/chunkstream.js)
zlib (imported by node_modules/pngjs/lib/parser-async.js, node_modules/pngjs/lib/parser-sync.js, node_modules/pngjs/lib/packer-sync.js, node_modules/pngjs/lib/packer.js, zlib?commonjs-external, node_modules/pngjs/lib/sync-inflate.js)
assert (imported by node_modules/pngjs/lib/sync-inflate.js, assert?commonjs-external)
(!) Plugin node-resolve: preferring built-in module 'buffer' over local alternative at '/home/matt/go/src/github.com/sanemat/workers-qr/node_modules/buffer/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
sanemat commented 3 years ago
+  const searchParams = new URL(request.url).searchParams;
+  const text = searchParams.get("text");
sanemat commented 3 years ago

I'll try creating minimal simple library in the future :sweat:

sanemat commented 3 years ago

QR-Code/ISO IEC 18004 2015 Standard.pdf