--- Title: Node Addon API Date: 2022-02-05 Sequence: Tags:  ---
Writing a C addon for Node is pretty straightforward. The build process was a hassle to set up but outside of that, there are plenty of examples to look at thought not much in the way of tutorials.
Luckily the examples cover a lot of the use cases and if you start small then it should be doable to learn as you go.
One thing I learned a bit late was that there are C examples and C++ examples, it would have probably been easier to use C, as the intercall library I was using was a C library but the C++ style did work.
It would be helpful to have had an idea of node-gyp does as from what I can tell its a node wrapper around python scripts that are replacements for makefiles. Maybe? I'll need to read up a bit more on what gyp is. I do wish I just had a single makefile that the bare command I need to run just for learning.