Sometimes you may need to integrate `debug` with a high performance logger, such as `pino`. And of course, there is an NPM package for that: `pino-debug`. However, if you look at its source code, you will find out that it uses undocumented dirty hacks, which, in my opinion, make it quite fragile. This article demonstrates a much simpler solution.
I once had to work with a project which used MariaDB connector for Node.js, and for some reasons it was necessary to add Knex query builder to it. The main issue was that Knex supports only a few drivers, and MariaDB is unfortunately not one of them. I had to write a MariaDB client for Knex myself, and that was surprisingly easy.
A simple addon for Node.js that provides bindings to inet_ntop() and inet_pton() functions