The entire win32 API in JavaScript
gist.github.com
gist.github.com
The novelty of the "I just converted this huge piece of software written in c or machine code into JS" type of post usually extends only to the title. The link itself generally serves only to evoke a profound "WTF" (and in this case took upwards of 40 seconds to load.)
Although I appreciate the undertaking of compiling prodigious libraries, drivers, etc. into JS, I don't see practical value in the product of said undertaking.
The fact that this practice has proliferated throughout HN recently is odd. This kind of thing is certainly remarkable, but it doesn't do anything.
I guess what I'm saying is why does it need to do anything or be practical? Cool stuff is just cool sometimes.
Windows script host (cscript) allows you to execute js files in addition to vbscript (vbs). This is particularly useful in extending the functionality of batch files. This can be useful in a lot of circumstances build process, installation etc.
http://www.microsoft.com/resources/documentation/windows/xp/...
Things like accessing namespace folders, creating shortcuts, etc are easier through this WHost interface than the raw API.
Deleted comment
And yeah, it's pretty obviously automatically generated.
This is the beginnings of a windows registry library https://github.com/Benvie/node-winreg
This is an example of creating a windowless event loop in order to create a low level keyboard/mouse hook https://github.com/Benvie/node-Windows/blob/master/input.js
Thank you for publishing this.
That said, WinRT doesn't expose Win32 API. Well done. That takes dedication, skill, and lack of sanity.
> Edit WinRT API link: http://msdn.microsoft.com/en-us/library/windows/apps/br21137...
You can for instance get processes informations, start a wave sound, and many more.
Scroll down to the middle to see API calls.
One use-case is using CoffeeScript or JavaScript to write tools that would benefit from these calls (could be system tools, or not).