You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/repl/README.md
+59-10Lines changed: 59 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,6 +373,14 @@ In [2]: x
373
373
Out[2]: 3.14
374
374
```
375
375
376
+
#### citation()
377
+
378
+
Prints how to cite stdlib in publications.
379
+
380
+
```text
381
+
In [1]: citation()
382
+
```
383
+
376
384
#### clear()
377
385
378
386
Clears the entire REPL screen and scrollback history.
@@ -483,6 +491,30 @@ The function supports the following `options`:
483
491
In [1]: clearWorkspace( 'foobar', { 'include': /^x/ } );
484
492
```
485
493
494
+
#### contributors()
495
+
496
+
Prints a list of stdlib contributors.
497
+
498
+
```text
499
+
In [1]: contributors()
500
+
```
501
+
502
+
#### copyright()
503
+
504
+
Prints copyright information.
505
+
506
+
```text
507
+
In [1]: copyright()
508
+
```
509
+
510
+
#### credits()
511
+
512
+
Prints credits.
513
+
514
+
```text
515
+
In [1]: credits()
516
+
```
517
+
486
518
#### currentWorkspace
487
519
488
520
Returns the name of the current workspace.
@@ -492,6 +524,21 @@ In [1]: currentWorkspace
492
524
Out[1]: 'base'
493
525
```
494
526
527
+
#### deeprerequire( id )
528
+
529
+
Re-imports a module, JSON, or local file and all of its associated module dependencies.
530
+
531
+
```text
532
+
In [1]: var foo = require( './foo.js' );
533
+
534
+
// Modify `./foo.js` and/or its module dependencies...
535
+
536
+
// Re-import the module:
537
+
In [2]: foo = deeprerequire( './foo.js' );
538
+
```
539
+
540
+
Modules can be imported from `node_modules`. Local modules and JSON files can be imported using a relative path (e.g., `'./foo.js'`, `'./../bar.json'`, etc) that will be resolved against the current working directory.
541
+
495
542
#### deleteWorkspace( \[name] )
496
543
497
544
Deletes a workspace.
@@ -531,21 +578,14 @@ Out[5]: 'base'
531
578
532
579
**Note**: the `'base'` workspace **cannot** be deleted.
533
580
534
-
#### deeprerequire( id )
581
+
#### donate()
535
582
536
-
Re-imports a module, JSON, or local file and all of its associated module dependencies.
583
+
Prints donation information.
537
584
538
585
```text
539
-
In [1]: var foo = require( './foo.js' );
540
-
541
-
// Modify `./foo.js` and/or its module dependencies...
542
-
543
-
// Re-import the module:
544
-
In [2]: foo = deeprerequire( './foo.js' );
586
+
In [1]: donate()
545
587
```
546
588
547
-
Modules can be imported from `node_modules`. Local modules and JSON files can be imported using a relative path (e.g., `'./foo.js'`, `'./../bar.json'`, etc) that will be resolved against the current working directory.
548
-
549
589
#### evalin( workspace, expression )
550
590
551
591
Evaluates an `expression` in a specified `workspace`.
@@ -635,6 +675,14 @@ In [1]: isKeyword( 'base.sin' )
635
675
Out[1]: true
636
676
```
637
677
678
+
#### license()
679
+
680
+
Prints license information.
681
+
682
+
```text
683
+
In [1]: license()
684
+
```
685
+
638
686
#### load( fpath )
639
687
640
688
Loads and evaluates a JavaScript file, such as a REPL history file, line-by-line.
@@ -725,6 +773,7 @@ The function accepts the following `options`:
725
773
-**load**: file path specifying a [presentation][@stdlib/repl/presentation] file to load. If presentation `text` is provided, this option is **ignored**. Otherwise, this option is **required**.
726
774
-**watch**: `boolean` indicating whether to watch a [presentation][@stdlib/repl/presentation] source file for changes. This option is only applicable if not provided presentation `text` and the `options` object specifies a presentation file to load. Default: `false`.
727
775
-**autoClear**: `boolean` indicating whether to automatically clear the screen before writing a rendered slide to the REPL. Default: `true`.
776
+
-**loop**: `boolean` indicating whether to "loop" a presentation. Default: `false`.
0 commit comments