.toLocaleString, one of the most underrated JavaScript features.toLocaleString and friends are some of the most underrated features of JavaScript. I came over them through a few different wanderings through MDN and I've used them in like every project since. Here, I'll show you how you can use them in your own c...Apr 24, 2022 · 3 min readblog.siddu.tech
New in Node.js v18Just yesterday, Node.js v18 was released as the current stable version. Here's a quick walkthrough of some of the new features. Global fetch! Node.js had a global fetch behind the --experimental-fetch flag, which would allow you to use the Browser Fe...Apr 20, 2022 · 3 min readblog.siddu.tech
I made a Node.js colors library in 192 bytes minzipped (+ code explanation!)A few minutes ago, I published PlanckColors. It's probably the smallest node module for colors on the internet, at just 119 bytes minzipped! It's so small, here's the source code: let p=['black','red','green','yellow','blue','magenta','cyan','white']...1AMar 6, 2022 · 2 min readblog.siddu.tech
MDSveX: The bridge between Markdown and SvelteA few days ago, I was looking around for tools to write my blog. I knew about MDX, but I wasn't really good at React and friends, which seemed to be the only frameworks supporting MDX painlessly (correct me if I'm wrong!) But after a bit of research,...3NMar 4, 2022 · 2 min readblog.siddu.tech
Let's debug a node.js app using the built-in debugger!It's about time we stop using console.log to debug things. While console.* are really powerful tools, it's a pain to maintain. Most of us can use our IDEs to debug code. But did you know that Node.js comes with a built-in debugger? It's a simple term...Mar 3, 2022 · 4 min readblog.siddu.tech