Gathering detailed insights and metrics for log-update-async-hook
Gathering detailed insights and metrics for log-update-async-hook
Gathering detailed insights and metrics for log-update-async-hook
Gathering detailed insights and metrics for log-update-async-hook
Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.
npm install log-update-async-hook
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
59 Commits
2 Forks
3 Watching
5 Branches
2 Contributors
Updated on 27 Aug 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-2.3%
33,551
Compared to previous day
Last week
-4.7%
184,057
Compared to previous week
Last month
-8.8%
843,230
Compared to previous month
Last year
-1.7%
11,169,991
Compared to previous year
4
1
This is a fork of the log-update by Sindre Sorhus, that uses async-exit-hook
to restore terminal cursor state when the process terminates.
Usage of exit-hook
or signal-exit
hook in the original log-update
prevents execution of asynchronous operations on signals (SIGTERM
, SIGHUP
, etc.) in the code of the main application.
So I've replaced them by async-exit-hook
, rewritten code to allow execution on Node versions below 4.x
and bundled some dependencies into the package.
Log by overwriting the previous output in the terminal.
Useful for rendering progress bars, animations, etc.
$ npm install --save log-update
1const logUpdate = require('log-update'); 2const frames = ['-', '\\', '|', '/']; 3let i = 0; 4 5setInterval(() => { 6 const frame = frames[i = ++i % frames.length]; 7 8 logUpdate( 9` 10 ♥♥ 11 ${frame} unicorns ${frame} 12 ♥♥ 13` 14 ); 15}, 80);
Log to stdout.
Clear the logged output.
Persist the logged output.
Useful if you want to start a new log session below the current one.
Log to stderr.
Get a logUpdate
method that logs to the specified stream.
MIT © Sindre Sorhus
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 3
Details
Reason
Found 1/21 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More