-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add template functions to bind easily #639
Comments
@chokobole Thank you for working on this feature! We spoke about this in the past two N-API team meetings and we believe that the best course of action would be to release this as a package on npm so that we might later consider it for integration into node-addon-api. The reason we wish to take this approach is that node-addon-api's core mission is to expose the plain C N-API as C++ wrappers. This feature adds functionality on top of that core mission, and so might live as an independent package with a dependency on node-addon-api. |
Maybe effects can be made to help modules like this to incubate and expose to more audiences.
|
When we bind a function, we have to write
argument checking
andtype conversion
every time per each function. The example below is one of them.And I made some template functions not to write everytime like below.
These codes are here and if you think it is good, I want to PR! :)
The text was updated successfully, but these errors were encountered: