Skip to content

Commit c940d58

Browse files
authored
docs: update REPL namespace documentation
PR-URL: #7903 Reviewed-by: Philipp Burckhardt <[email protected]> Signed-off-by: stdlib-bot <[email protected]>
1 parent 414da4a commit c940d58

File tree

8 files changed

+8
-4
lines changed

8 files changed

+8
-4
lines changed

lib/node_modules/@stdlib/repl/code-blocks/data/data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3152,6 +3152,7 @@ HOURS_IN_DAY,"var days = 3.14;\nvar hrs = days * HOURS_IN_DAY\n"
31523152
HOURS_IN_WEEK,"var wks = 3.14;\nvar hrs = wks * HOURS_IN_WEEK\n"
31533153
hoursInMonth,"var num = hoursInMonth()\nnum = hoursInMonth( 2 )\nnum = hoursInMonth( 2, 2016 )\nnum = hoursInMonth( 2, 2017 )\nnum = hoursInMonth( 'feb', 2016 )\nnum = hoursInMonth( 'february', 2016 )\n"
31543154
hoursInYear,"var num = hoursInYear()\nnum = hoursInYear( 2016 )\nnum = hoursInYear( 2017 )\n"
3155+
httpServerFactory,"var boot = httpServerFactory()\nfunction onRequest( request, response ) {\nconsole.log( request.url );\nresponse.end( 'OK' );\n };\nboot = httpServerFactory( onRequest )\nvar opts = { 'port': 7331 };\nboot = httpServerFactory( opts )\n"
31553156
identity,"var v = identity( 3.14 )\n"
31563157
ifelse,"var z = ifelse( true, 1.0, -1.0 )\nz = ifelse( false, 1.0, -1.0 )\n"
31573158
ifelseAsync,"function predicate( clbk ) {\n setTimeout( onTimeout, 0 );\n function onTimeout() {\n clbk( null, true );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nifelseAsync( predicate, 'beep', 'boop', done )\n"

lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/info/data/data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3153,6 +3153,7 @@ HOURS_IN_DAY,"\nHOURS_IN_DAY\n Number of hours in a day.\n"
31533153
HOURS_IN_WEEK,"\nHOURS_IN_WEEK\n Number of hours in a week.\n"
31543154
hoursInMonth,"\nhoursInMonth( [month:string|Date|integer[, year:integer]] )\n Returns the number of hours in a month.\n"
31553155
hoursInYear,"\nhoursInYear( [value:integer|Date] )\n Returns the number of hours in a year according to the Gregorian calendar.\n"
3156+
httpServerFactory,"\nhttpServerFactory( [options:Object,] [requestListener:Function] )\n Returns a function to create an HTTP server.\n"
31563157
identity,"\nidentity( x:any )\n Identity function.\n"
31573158
ifelse,"\nifelse( bool:boolean, x:any, y:any )\n If a condition is truthy, returns `x`; otherwise, returns `y`.\n"
31583159
ifelseAsync,"\nifelseAsync( predicate:Function, x:any, y:any, done:Function )\n If a predicate function returns a truthy value, returns `x`; otherwise,\n returns `y`.\n"

lib/node_modules/@stdlib/repl/info/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/signature/data/data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,6 +3192,7 @@ HOURS_IN_DAY,"HOURS_IN_DAY"
31923192
HOURS_IN_WEEK,"HOURS_IN_WEEK"
31933193
hoursInMonth,"hoursInMonth( [month[, year]] )"
31943194
hoursInYear,"hoursInYear( [value] )"
3195+
httpServerFactory,"httpServerFactory( [options,] [requestListener] )"
31953196
identity,"identity( x )"
31963197
ifelse,"ifelse( bool, x, y )"
31973198
ifelseAsync,"ifelseAsync( predicate, x, y, done )"

lib/node_modules/@stdlib/repl/signature/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/repl/typed-signature/data/data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,6 +3192,7 @@ HOURS_IN_DAY,"HOURS_IN_DAY"
31923192
HOURS_IN_WEEK,"HOURS_IN_WEEK"
31933193
hoursInMonth,"hoursInMonth( [month:string|Date|integer[, year:integer]] )"
31943194
hoursInYear,"hoursInYear( [value:integer|Date] )"
3195+
httpServerFactory,"httpServerFactory( [options:Object,] [requestListener:Function] )"
31953196
identity,"identity( x:any )"
31963197
ifelse,"ifelse( bool:boolean, x:any, y:any )"
31973198
ifelseAsync,"ifelseAsync( predicate:Function, x:any, y:any, done:Function )"

lib/node_modules/@stdlib/repl/typed-signature/data/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)