Skip to content

Commit 42c0442

Browse files
authored
Merge pull request #2 from snowak-cb/console-improvements-for-live-response
Console improvements for live response
2 parents 548cc92 + 2fe9ef5 commit 42c0442

12 files changed

+64
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Properties you can pass to the console element
6767
| Member | Type | Description
6868
| ---- | ---- | ----
6969
| log | (...messages: any)=>void | Log messages to the console. If string, print the value, otherwise, print the JSON value of the message.
70+
| updateLastLog| (...messages: any)=>void | Replace the last message in the console. Useful for progress indicators.
7071
| logX | (type: string, ...messages: any)=>void | Log messages of a particular type to the console. The messages will be given the class `react-console-message-{type}`.
7172
| logTable | (tableObject: Object)=>void | Log tabular data to the console. `tableObject` has the format `{ headers: ['header 1', 'header 2'], rows: [['row 1, col 1', 'row 1, col 2'], ['row 2, col 1', 'row 2, col 2']]}`. `headers` is optional.
7273
| return | ()=>void | Signal the current command has finished and a new prompt should be displayed.

dist/dist-min.tar.gz

474 Bytes
Binary file not shown.

dist/dist-min.zip

500 Bytes
Binary file not shown.

dist/dist-min/react-console.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist-min/react-console.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist.tar.gz

344 Bytes
Binary file not shown.

dist/dist.zip

346 Bytes
Binary file not shown.

dist/dist/react-console.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist/react-console.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-console.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)