3 ms·
Not quite, as this is a native program and not a Javascript module. Window.js is like Node itself, but has different APIs. The main difference is that it gives
by joaodasilvaz 5y ago
Not quite, as this is a native program and not a Javascript module.
Window.js is like Node itself, but has different APIs. The main difference is that it gives you a desktop window and the Canvas 2D API, and doesn't have any of Node's networking APIs.
Other differences to Node:
* every source is imported to Window.js as an ES6 module.
* Window.js does not support NPM and doesn't aim to.
* Node uses callbacks for async APIs, Window.js uses Promises
* Node is widely tested and used, Window.js is quite new and experimental :-)
Other projects have built bindings for GLFW for Node. Have a look at the GLFW documentation and search for "node":
https://www.glfw.org/community.html#bindings https://www.glfw.org/community.html#bindings