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
Typescript
Module System
Node Version
NPM Version
99
Supply Chain
90.3
Quality
82
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
68,753,218
Last Day
14,818
Last Week
221,300
Last Month
962,536
Last Year
10,824,047
MIT License
59 Commits
2 Forks
2 Watchers
5 Branches
2 Contributors
Updated on Aug 27, 2024
Minified
Minified + Gzipped
Latest Version
2.0.7
Package Id
log-update-async-hook@2.0.7
Unpacked Size
6.46 kB
Size
2.88 kB
File Count
6
NPM Version
7.21.0
Node Version
16.8.0
Cumulative downloads
Total Downloads
Last Day
0.2%
14,818
Compared to previous day
Last Week
-4.1%
221,300
Compared to previous week
Last Month
2.5%
962,536
Compared to previous month
Last Year
-3.4%
10,824,047
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 3
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/21 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
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 2025-06-30
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