![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
awesome-logging
Advanced tools
Advanced logging messages, interactive prompts, loading animations and more in TypeScript
awesome-logging is a collection of fancy text outputs and inputs for CLI tools written in NodeJS. No matter what you want to log to the terminal or what information you need from the user, awesome-logging will help you do so.
yarn add awesome-logging
// or
npm i awesome-logging
import { AwesomeLogger } from 'awesome-logger';
// Example: Simple text logging
AwesomeLogger.log('Welcome to awesome-logging!');
const logControl = AwesomeLogger.log('Is this a logging library?');
setTimeout(() => logControl.setText('This is an awesome-logging library!'), 1500);
setTimeout(() => logControl.setText('Cool!'), 3000);
// Example: Simple text logging (with line breaks)
const textA = 'One line of text...';
const textB = 'Multiple\nLines\nof Text!';
let state = true;
const logControl = AwesomeLogger.log(textA);
setInterval(() => {
state = !state;
logControl.setText(state ? textA : textB);
}, 1000);
// Example: Progress Bar
const logProgressControl = AwesomeLogger.log('progress', {
totalProgress: 100,
text: 'Very important progress:'
});
let i = 0;
const interval = setInterval(() => {
logProgressControl.setProgress(i++);
if (i === 100) {
clearInterval(interval);
}
}, 500);
AwesomeLogger.create(loggerType, loggerOptions): LoggerControl
AwesomeLogger.log(text): LoggerControl
AwesomeLogger.log(logger): LoggerControl
AwesomeLogger.log(loggerType, loggerOptions): LoggerControl
AwesomeLogger.prompt(promptType, promptOptions): PromptControl
AwesomeLogger.interrupt(text): void
The simplest of all loggers; logs any printable string, no matter if one, or multiple lines.
LoggerOptions
Option | type | description | default |
---|---|---|---|
text | string | The text that should be logged. | '' |
LoggerControl
Method | returnType | description |
---|---|---|
setText(text: string) | void | Sets a new text to the logger. |
Logs a loading spinner with a custom loading animation and text.
LoggerOptions
Option | type | description | default |
---|---|---|---|
text | string | The description text of the loading spinner. | '' |
spinnerFrames | string[] | The array of strings that are used for the animation. | ['. ', '.. ', '...', '.. '] |
spinnerDelay | number | The amount of ms between each spinnerframe. | 500 |
LoggerControl
Method | returnType | description |
---|---|---|
stop(options: { succeeded?: boolean; removeLine?: boolean; text?: string }) | void | Stops the spinner and changes the logging accordingly to the provided options. |
Loggs a progressbar with optional text.
LoggerOptions
Option | type | description | default |
---|---|---|---|
totalProgress | number | The maximum number the progress can reach. | 100 |
text | string | The text that is displayed in front of the bar. | '' |
completedText | string | The text that is displayed when the progress reaches 100%. | '' |
unfilledChar | string | The character that is pronted for the uncompleted section of the bar. | '·' |
filledChar | string | The character that is pronted for the completed section of the bar. | '■' |
borderChar | string | The caharter that is printed on the left and right of the bar. | '■' |
maxWidth | number | The maximum cound characters the progressbar can have can. | Terminal Width |
borderColor | AwesomeLoggerColor | The color of the border chars. | 'GRAY' |
unfilledColor | AwesomeLoggerColor | The color of the uncompleted part of the bar. | 'GRAY' |
filledColor | AwesomeLoggerColor | The color of the completed part of the bar. | 'WHITE' |
Note: For performance reasons do not specify the colors of unfilled or filled characters directly in the string option, but by the dedicated color option.
LoggerControl
Method | returnType | description |
---|---|---|
setProgress(progress: number, text?: string) | void | Sets the current progress and optionally a new text. |
Logs a list of items that have a certain state like 'pending', 'inProgress', 'succeeded' and more.
LoggerOptions
Option | type | description | default |
---|---|---|---|
items | AwesomeChecklistLoggerItem | All items that are part of the checklist. | [] |
LoggerControl
Method | returnType | description |
---|---|---|
changeState(index: number, state: AwesomeChecklistLoggerState, newText?: string) | void | Changes the state of one item based on the index. Optionally sets a new text for that item. |
Combines multiple loggers that were created previously and loggs them below each other.
LoggerOptions
Option | type | description | default |
---|---|---|---|
children | AwesomeLoggerBase[] | The array of loggers that were created previously. | [] |
LoggerControl
Method | returnType | description |
---|---|---|
getChild<T extends AwesomeLoggerBase>(index: number) | T | Returns the child at the given index. Be cautious as you have to be sure what kind of logger is present at the provided index. |
FAQs
Advanced logging messages, interactive prompts, loading animations and more in TypeScript
The npm package awesome-logging receives a total of 0 weekly downloads. As such, awesome-logging popularity was classified as not popular.
We found that awesome-logging 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.