--- Title: How to start a node addon project Date: 2022-03-22 Sequence: Tags:  ---
This is just a quick post to write down how to start a node addon project.
We first install the generator.
> npm install -g yo generator-napi-module
Next we start our project and we're going to choose the object wrap template.
> mkdir d3 > cd d3 > yo napi-module ... ? Choose a template Object Wrap ? Would you like to generate TypeScript wrappers for your module? No ...
Now that we have our template project, we can build it and make sure it works.
> node-gyp configure build > npm test