File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/repl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,25 @@ var CLI = require( '@stdlib/tools/cli' );
2828var repl = require ( './../lib' ) ;
2929
3030
31+ // VARIABLES //
32+
33+ var MSG = [
34+ '' ,
35+ 'A better REPL for Node.js.' ,
36+ '' ,
37+ ' help( alias ) Prints help text.' ,
38+ ' examples( alias ) Runs examples.' ,
39+ ' alias2pkg( alias ) Converts an alias to a stdlib package name.' ,
40+ ' pkg2alias( pkg ) Converts a stdlib package name to an alias.' ,
41+ ' namespace() Lists namespace contents.' ,
42+ '' ,
43+ 'For more info about stdlib, see the source repository:' ,
44+ '' ,
45+ ' https://github.com/stdlib-js/stdlib' ,
46+ ''
47+ ] . join ( '\n' ) ;
48+
49+
3150// MAIN //
3251
3352/**
@@ -44,7 +63,7 @@ function main() {
4463 'encoding' : 'utf8'
4564 } )
4665 } ) ;
47- console . log ( 'Starting REPL...' ) ; // eslint-disable-line no-console
66+ console . log ( MSG ) ; // eslint-disable-line no-console
4867 repl ( onStart ) ;
4968
5069 /**
Original file line number Diff line number Diff line change @@ -28,6 +28,25 @@ var CLI = require( '@stdlib/tools/cli' );
2828var repl = require ( './../lib' ) ;
2929
3030
31+ // VARIABLES //
32+
33+ var MSG = [
34+ '' ,
35+ 'A better REPL for Node.js.' ,
36+ '' ,
37+ ' help( alias ) Prints help text.' ,
38+ ' examples( alias ) Runs examples.' ,
39+ ' alias2pkg( alias ) Converts an alias to a stdlib package name.' ,
40+ ' pkg2alias( pkg ) Converts a stdlib package name to an alias.' ,
41+ ' namespace() Lists namespace contents.' ,
42+ '' ,
43+ 'For more info about stdlib, see the source repository:' ,
44+ '' ,
45+ ' https://github.com/stdlib-js/stdlib' ,
46+ ''
47+ ] . join ( '\n' ) ;
48+
49+
3150// MAIN //
3251
3352/**
@@ -44,7 +63,7 @@ function main() {
4463 'encoding' : 'utf8'
4564 } )
4665 } ) ;
47- console . log ( 'Starting REPL...' ) ; // eslint-disable-line no-console
66+ console . log ( MSG ) ; // eslint-disable-line no-console
4867 repl ( onStart ) ;
4968
5069 /**
You can’t perform that action at this time.
0 commit comments