pnpm's strictness helps to avoid silly bugs

pnpm is a package manager for Node.js.I have written an article earlier about why should we use pnpm.In this article I want to demonstrate how using pnpm helps in preventing some silly bugs.When using npm, you have access to packages that you don’...

Why should we use pnpm?

pnpm is an alternative package manager for Node.js.It is a drop-in replacement for npm, but faster and more efficient.How fast? 3 times faster! See benchmarks here.Why more efficient? When you install a package, we keep it in a global store on you...

How to write a good npm module

Creating a new npm module is as easy as executing the npm init command.However, writing an awesome! npm module involves more than just creating a minimal package.json file.Tests are important!An awesome npm module should have tests. It doesn’t mat...

JavaScript idioms

JavaScript is a powerful and sometimes weird language and it has a lot of interesting idioms (about what is programming idiom).My intention in this article is just to show some of the most popular and widely used javascript idioms.I won’t focus on...

Hapi authentication/authorization for Express users

With no doubt Express is currently the most popular web framework for Node.js. It is far from being the only one though! There are dozens of other great Node.js web frameworks and one of them is hapi. Hapi was developed by @WallmartLabs and has se...