Can node.js be used as a general framework for running server-side Javascript specifically for web applications, totally unrelated to it's non-blocking and asynchrouns I/O functionality? Specifically I want to know if I can run arbitrary Javascript on the (web) server without using the other node.js functionality.
Yes, it's possible to use node.js for command-line applications, for example:
$ cat hello.js
console.log('Hello world!');
$ node hello.js
Hello world!
It's essentially just like any scripting language in this regard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With