scala has been used successfully to create commandline applications on the jvm. scala is now available on javascript platform using scalajs. Scalajs programs can be deployed in the web, on the client, as well as on the server, using nodejs.

This book describes the choices you need to make when creating command line applications on nodejs.