evrythng / digital-link.js

GS1 Digital Link SDK for working with Digital Links as objects, including validation.
Apache License 2.0
3 stars 1 forks source link

Validation and compression failed if added to the browser using a script tag #25

Closed ablears closed 1 year ago

ablears commented 1 year ago

Hi, I don't use node.js so was looking to get this working in the browser or via Cloudflare Worker. Unfortunately both methods fail. On the browser, I get an error about the node.js function Buffer being unavailable. Is it possible to create a version that works client-side in the browser or through a worker?

ablears commented 1 year ago

Never mind. I got this working as a Cloudflare Worker by polyfilling Buffer.