Alex Chen
Front-end & Node.js Developer
About
Alex is a front-end and Node.js developer with extensive experience building web applications and developer tooling. He is passionate about web standards, browser APIs, and the JavaScript ecosystem. In his spare time he contributes to open-source projects and writes about modern JavaScript patterns, performance optimisation, and everything related to the web platform.
Articles by Alex Chen
Format JSON in JavaScript with JSON.stringify(data, null, 2). Covers replacer, BigInt, Date, Node.js files, CLI, and fast-json-stringify.
Decode Base64 in JavaScript using atob() and Buffer.from(). Covers UTF-8 handling, URL-safe Base64, JWT decoding, Node.js files, and four common mistakes.
Encode URLs in JavaScript with encodeURIComponent(), URLSearchParams, and encodeURI(). Covers Fetch API, qs library, CLI, and common mistakes. Node.js 10+.
Decode percent-encoded strings in JavaScript using decodeURIComponent(). Covers URLSearchParams, decodeURI(), Fetch API, error handling, and Node.js 10+.
Encode to Base64 in JavaScript using btoa() and Buffer.from(). Covers Unicode handling, URL-safe Base64, file and API encoding. Node.js 18+ examples.