How to create Node.js modules in C++

As you should know, Node.js is a layer over V8, enterely written in C, Node.js gives you a simple API to V8 functions and lets you call them from Javascript with ease, but, what happen if you need more efficiency?
Well, as you are working with an abstraction layer, you, theorically can create a module in C with a public interface and grab it from that layer, in a way you could interact with the module itself, right?

Yes, you can, this is known as node bindings.

Continue reading “How to create Node.js modules in C++”