5 ms·
You can use it for a lot of different application types. It's typically used for web as most web developers already know some Javascript. It's also very lightwe
by vegancap 11y ago
You can use it for a lot of different application types. It's typically used for web as most web developers already know some Javascript. It's also very lightweight, portable and has a lot of great features that other web languages either don't or don't do as nicely as Node. Asynchronicity for example.
People have also used it for desktop applications, with a few desktop UI library wrappers. Githubs text editor 'Atom' for example.
Node also has a great set of API's for interacting with the system and network utilities, so there's a lot of great tools for networking and automation.
Finally, because Javascript is so lightweight, we're seeing it play a key role in the 'Internet of Things'. Some micro-controllers are even written in JS (see Tessel).
So don't feel as though it's for one thing or another, just have fun with it and explore the language and its potential!
- regecks 11y agoI am not sure it can be called 'very lightweight'. The runtime itself has a large disk footprint, my node_modules is often 100s of MB, and the memory usage is quite heavy too (idle Ghost.org blog takes around ~100MB RSS). Some of the APIs are not very portable either, such as fs.watch. Many npm libraries implicitly depend on Linux or OS X. It's convenient though, sure.