3 ms·
I've been using node-webkit for the past 18 months or so, and it's been absolutely delightful. One thing this article gets slightly wrong is this sentence: "Th
by benjismith 12y ago
I've been using node-webkit for the past 18 months or so, and it's been absolutely delightful.
One thing this article gets slightly wrong is this sentence: "This means that Node.js modules must exclusively use functions and classes provided by Node.js or modules from npm, as the DOM is off limits."
This might be technically true, but there's an easy enough workaround:
1) Use a script tag to include jQuery in the index.html page
2) Pass the jQuery object ($) as a dependency into a node module.
3) Profit.
I regularly modify the DOM from node context using this pattern.