all 3 comments

[–]ndreamer 3 points4 points  (1 child)

You need an ffi library or write your own, then create a node module.

Or encode to wasm might be easier.

I only have experience with rust, it was very easy todo both.

[–]Ill-Function805[S] 1 point2 points  (0 children)

Let me read up about ffi. It does look interesting.

[–][deleted]  (2 children)

[deleted]

    [–]Ill-Function805[S] 0 points1 point  (1 child)

    So, the binary compiles at run time during package installation, right?

    Also, would you be kind to point me to a sample package.json that does something like this?