Comment by wk_end
4 hours ago
I haven’t tried it myself but I don’t think that’s the case. See the documentation here:
https://nodejs.org/api/n-api.html
I’ve only skimmed this, but it sure sounds like it lets you write C code that operates on JS objects. In fact, it explicitly says “APIs exposed by Node-API are generally used to create and manipulate JavaScript values.”
No comments yet
Contribute on Hacker News ↗