0

Can a C++ app or library be called from Node JS? I want to use this PSD parser, https://molecular-matters.com/index.html on a node js express js server. The PSD Parser looks like an app rather than a library.

I'm on OSX 10.15.7

1

1 Answer 1

1

Yes, see inline-cpp for an easy-to-use interface:

const compile = require('inline-cpp');

const hello = compile `
  String func(const CallbackInfo& info) {
    return String::New(info.Env(), "Hello world from C++!");
  }
`

console.log(hello())

Downloads:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.