
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Use this module to create somewhat pretty CLI apps (like Avalon).
You can log at various levels:
import { debug, info, warn, error } from 'uilog';
debug('hidden by default');
info('visible by default');
warn('vibisble by default and yellow');
error('visible by default and red');

Use setVerbose(true) to change the visiblity of debug rows.
But it's also possible to log async tasks with a spinner! They do follow the same visibility / styling rules as the normal logging functions.
import { debugWait, infoWait, warnWait, errorWait } from 'uilog';
const ok = infoWait('Processing ...');
setTimeout(ok.done, 3000);
const error = warnWait('Waiting for a lock to be released ...');
setTimeout(error.error, 2000);
const hide = errorWait('Waiting for required clients ...');
setTimeout(hide.clear, 1000);
const download = infoWait('Downloading a file ...');
setTimeout(() => download.setProgress(5), 0);
setTimeout(() => download.setProgress(10), 500);
setTimeout(() => download.setProgress(20), 1000);
setTimeout(() => download.setProgress(30), 1500);
setTimeout(() => download.setProgress(40), 2000);
setTimeout(() => download.setProgress(50), 2500);
setTimeout(() => download.setProgress(60), 3000);
setTimeout(() => download.setProgress(70), 3500);
setTimeout(() => download.setProgress(80), 4000);
setTimeout(() => download.setProgress(90), 4500);
setTimeout(() => download.setProgress(100), 5000);
setTimeout(download.done, 5250);

With namespace you can create arbitraty deeply nested log output:
import { namespace } from 'uilog';
namespace('some')
.namespace('deep')
.namespace('nesting')
.info('hi!');

npm install --save uilog
FAQs
Logging interface for somewhat pretty CLI apps
We found that uilog 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.