This repo contains the example code for the blog post:
Beginners guide to writing NodeJS Addons using C++ and N-API (node-addon-api)
The blog link :
To run the example:
git clone https://github.com/master-atul/blog-addons-example
npm install
npm run build
//This is mostly not needed. But just in casenode index.js
Hope this helps someone 🎉🌮