www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Using N-API Nodejs extension in D.

reply Tyler51 <acevedoaaron26 gmail.com> writes:
Is it also possible to use D with N-API,the newer interface 
Node-js recommends writing native addons in?

I Just wanted to share how I have managed to interface node.js 
with D using C++ bridge and NAN. So far I have been using C++ and 
rust for this but for obvious reasons (that would be a long story 
to explain) I wanted to go with D. One of the show stoppers was 
the lack of well established (or I don't know if that exists) 
library of framework to help with that.

https://www.prepaidgiftbalance.vip/
May 19 2021
parent Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Wednesday, 19 May 2021 at 11:33:44 UTC, Tyler51 wrote:
 Is it also possible to use D with N-API,the newer interface 
 Node-js recommends writing native addons in?

 I Just wanted to share how I have managed to interface node.js 
 with D using C++ bridge and NAN. So far I have been using C++ 
 and rust for this but for obvious reasons (that would be a long 
 story to explain) I wanted to go with D. One of the show 
 stoppers was the lack of well established (or I don't know if 
 that exists) library of framework to help with that.

 https://www.prepaidgiftbalance.vip/
I found [`node_dlang`][1] on [code.dlang.org](https://code.dlang.org), but I haven't tried it. [1]: https://code.dlang.org/packages/node_dlang
May 19 2021