Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
repl: add welcome message #25947
I want to make node more friendly for new user. Actually it take me very long to find out node repl can load script :)
Also I am not quite sure I put the change in best location in
The current welcome message is (copyed from windows powershell):
Welcome to Node.js v12.0.0-pre. Type ".help" for more information.
Compare with other languages
Python 3.7.2 (default, Jan 23 2019, 02:31:57) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information.
In java (use
Feb 05, 2019 2:42:25 PM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. | Welcome to JShell -- Version 11.0.1 | For an introduction type: /help intro
May need port to Node 8 && 10.
@targos Yes, why not?
Each of those is interrupted by
$ node > foo console.log('bar') $ cat foo > bar undefined >
$ node | wc console.log('foo') 2 4 18
$ node | cat > console.log('foo') foo undefined >
$ node > /dev/stdout > console.log('foo') foo undefined >
The last one (redirected to