From simple roots, a module will grow.
There's a lot of information about creating native node modules in C++ but few resources on creating native node modules in C. Well, this template is for that.
- Any operating system that
node-gypworks on. - NodeJS and npm
- Python
- GNU Make. Windows users should use
mingw32-make.exe - clangd (optional)
- Clone this repo.
- Remove files you don't want or need.
- Edit the
package.jsonand.editorconfig. - Inspect the Makefile.
- When you are satisfied, run
maketo generatecompile_flags.txtfor clangd. - Run
make printto compile and run hello world. - Enjoy!
I highly recommend sticking with Make for your build system since it's generally easy to understand.