Skip to content

2025#

pnpm - a fast disk space efficient package manager

I came across into a scenario where I have multiple Node.js projects or directories and turns out that it has its own copies of node_modules for each folder which accumulates large sizes on disk.

Learning about pnpm package manager made me realize that it is fast as it reuses packages already installed instead of creating another copy of the package which adds space in disk.

structuredClone() a deep copy of the original value

Is a method of that creates deep clone of a given object (includes nested fields).

This is useful when its tedious to use the spread operator { ...obj } on a deeply nested object.

The purpose of cloning is that you would not have to accidentally mutate the original.