
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
@concepto/console
Advanced tools
Concepto DSL - visually create and maintain modern node.js based apps (@console)
A progressive Node.js framework for visually building efficient and scalable nodejs based applications.
Advanced ES6 console output class used within Concepto DSL
Note you need to pass all arguments as an object with keys.
Open_console: A class to help display information in the console.
ObjectObjectSets visibility output
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| value | Boolean | if true, hides all output |
Calls timer start
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| id | String | key ID to measure |
Calls timer end
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| id | String | key ID to measure and show timming for. |
| [data] | Object | var dump to include in output |
| [color] | String | black,red,green,yellow,blue,purple,cyan,white |
| [prefix] | String | use this prefix instead of the configured one. To use color, use format 'prefix,color' |
Sets output prefix
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| [prefix] | String | prefix |
| [color] | String | black,red,green,yellow,blue,purple,cyan,white |
Clears the console screen
Kind: instance method of open_console
ObjectOutputs an ora spinner with the given message, used prefix and color.
Kind: instance method of open_console
Returns: Object - - Object similar to ora object with an additional text(x) method
| Param | Type | Description |
|---|---|---|
| message | String | message to output |
| [color] | String | black,red,green,yellow,blue,purple,cyan,white |
| [prefix] | String | use this prefix instead of the configured one. To use color, use format 'prefix,color' |
ObjectReturns an instance of cli-progress with the given total amount, format, and color.
Kind: instance method of open_console
Returns: Object - - Object similar to cli-progress object with methods to create,update,remove progress bars
| Param | Type | Description |
|---|---|---|
| format | String | format of progress message. Example: 'Progress {bar} - {percentage} %' |
| [config] | Object | options overwrite for cli-progress multibar config |
| [prefix] | String | use this prefix instead of the configured one. To use color, use format 'prefix,color' |
| [formatData] | function | function(data) expects a return of a modified data instance. Inside you can control the format presentation and vars used inside the format argument. You also have access to special keys (progress,value,total,bar,eta,percentage,...all your data keys) and helper functions (data.funcs.colors and data.funcs.symbols). |
Output a message to the console screen, with an optional var with data
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| message | String | message to output |
| [data] | Object | var dump to include in output |
| [color] | String | black,red,green,yellow,blue,purple,cyan,white |
| [prefix] | String | use this prefix instead of the configured one. To use color, use format 'prefix,color' |
Output a message to the console screen with timestamp, and an optional var with data
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| message | String | message to output |
| [data] | Object | var dump to include in output |
| [color] | String | black,red,green,yellow,blue,purple,cyan,white |
| [prefix] | String | use this prefix instead of the configured one. To use color, use format 'prefix,color' |
Displays the given text as a title
Kind: instance method of open_console
| Param | Type | Default | Description |
|---|---|---|---|
| title | String | title to display | |
| [color] | String | white | color for box borders. |
| [titleColor] | String | color for title. If undefined, uses the box color. | |
| [config] | Object | config overwrite params for boxen. | |
| [config.align] | String | center | aligns the title by its value: left,center,right |
Shows data array as table in the console
Kind: instance method of open_console
| Param | Type | Description |
|---|---|---|
| title | String | title for table |
| data | Array | array of objects for building the table. |
| [struct_sort] | String | sort data before displaying. Supports: field asc/desc. |
| [color] | String | color for table. |
© 2020-2022 Pablo Schaffner <pablo@puntorigen.com>.
FAQs
Concepto DSL - visually create and maintain modern node.js based apps (@console)
The npm package @concepto/console receives a total of 6 weekly downloads. As such, @concepto/console popularity was classified as not popular.
We found that @concepto/console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.