How does the node command line turn on the http service?

for example, PHP has a command line way to quickly start the service:

php -S localhost:8888

is there a similar way for node to quickly start a service?

< hr >

nodeJS does not have the command to open the service directly, so it seems that there is no other way but to install a third-party package. There is no answer to this question. It is closed.

Mar.22,2022

  

nodeJS does not have the command to start the service directly, so there seems to be no other way but to install a third-party package. There is no answer to this question. It is closed.

Menu