On Tue, Jan 21, 2020 at 6:40 AM Dominic Cerisano <[email protected]> wrote: > > Hi there, > > I just built a N-API addon for Node, and now have a requirement to run it in > a V8 standalone build (without Node). > > From what I understand N-API is a wrapper around V8, so hoping a V8 > standalone addon should be fairly straight-forward? > > Are there examples of this? I have searched around not found anything > specific about N-API addons for V8 standalone.
Your answer is probably more appropriate for the v8-users mailing list but to answer it: while the n-api _interface_ is runtime agnostic*, its current _implementation_ is strongly tied to Node.js. It's possible to create a standalone version that works with plain V8 but to my knowledge no one has done so, so far. I'm cc'ing Gabriel Schulhof, n-api's maintainer, maybe he has more to say on the subject. :-) * Modulo some Node.js-specific APIs that you can stub/mock/leave out, like napi_create_buffer() and napi_get_uv_event_loop(). -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc9MMoFuv4tK5-PyB0-8KdwMB2dixBTD2Cj5hMWyvkYcCQ%40mail.gmail.com.
