Node JS addons - NAN vs N-API? : <p>I am looking to working on a project using node js addons with C++. I came across two abstract library NAN and N-API that I can use. However I am unable to decide which one I should use. I was not able to find proper comparison between these two libraries.</p>

<p>What are the pros, cons and differences of both? How to choose between them?</p>

<p>So far I have found that NAN has more online tutorials/articles regarding async calls. But N-API is officially supported by Node (and was created after NAN as a better alternative, although not sure.)</p>
