5

So I have heard of http://appjs.com/ and http://electron.atom.io/, but what I want to know can I create a native application using node.js?

From my understanding any language can call WINAPI, and it is possible due to that it's just a question if somebody is willing to create a wrapper for them? ( And possibly create equivalents in Linux / OSX )

I just want to know if my understanding is correct.

Thanks in advance!

8
  • How do node.js and desktop apps relate? Commented Feb 16, 2017 at 18:30
  • It's more of a understanding how things work than a node.js question, I just want to know if it is possible, I'm not saying that it should be done? Commented Feb 16, 2017 at 18:31
  • You want to call winapi from javascript? Where does node come into it? Commented Feb 16, 2017 at 18:32
  • 1
    Every programming language that can consume a C interface is capable of producing a 'native' Windows application. You are probably being down-voted, because the question is almost like asking: Which programming language is more Turing-complete? Commented Feb 16, 2017 at 18:33
  • 1
    To consume a C interface means, to call into a C function and be able to receive the return value(s). I don't know of a single programming language (experimental ones, like Brainfuck, aside), that cannot call C functions. So yes, probably any language can call the Windows API (including those services exposed through COM). Commented Feb 16, 2017 at 19:27

1 Answer 1

4

As mentioned in the comments, there are already modules that do this by interfacing with the Windows API.

You can try node-ffi as well, a module for loading DLLs.

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.