1

node.js はオペレーティング システム レベルで何ができますか?

グラフィックカードやスピーカー、またはUSB経由で接続された他のデバイスを制御できるノードで何かを構築できますか?

4

2 に答える 2

3

libuv provides the low-level support for node.js. For anything not available through the node core directly, you can write modules in C++ (linking against the libusb library directly) or use an existing module like https://npmjs.org/package/usb

于 2013-10-09T01:42:48.543 に答える
1

There's a full list of the builtin modules here. There aren't that many of them to skim through yourself. Most of what you want to do is not built in.

However, if you know C or C++, you can write your own addons that expose native objects to the JS layer. So anything you could ever want to do is possible.

And someone may have already written an npm package for it, so you don't have to. But nobody is going to summarize all 43326 packages to tell you "What node.js can do". You will have to ask for something specific, and search for it yourself.

于 2013-10-09T01:42:59.163 に答える