I'm new to Node.js addons, I don't understand the difference between nan and n-api.
And is there an easy way to migrate an addon for old version (node v.0) to a newer version (node v.8)?
I'm new to Node.js addons, I don't understand the difference between nan and n-api.
And is there an easy way to migrate an addon for old version (node v.0) to a newer version (node v.8)?
Copyright © 2021 Jogjafile Inc.
n-apiis a new way to create addon independent from the underlying JavaScript runtime (ex V8) and is maintained as part of Node.js.I think there is no easy way for migration to n-api because it changed almost every interface but I think programming with
n-apiis easier thannan. Inn-apiyou can use pure C programming and it's new feature. for more example onn-apiyou can check here.