Use PouchDB on a Vue 3 app with Vite
Fix the global-is-not-defined and process errors when using PouchDB in a Vue 3 + Vite application.
Topic
The language of the web, its runtimes and its sharp edges.
5 articles
Fix the global-is-not-defined and process errors when using PouchDB in a Vue 3 + Vite application.
Find a free TCP port in Node.js by probing candidates with a temporary server.
A small Node.js CLI that polls URLs with Axios and reports when a service becomes ready.
Compute the UTF-8 byte length of a JavaScript string, which String.length does not give you.
Download a base64-encoded file in the browser via a hidden link, with legacy Internet Explorer compatibility.