Gathering detailed insights and metrics for chalk-animation
Gathering detailed insights and metrics for chalk-animation
Gathering detailed insights and metrics for chalk-animation
Gathering detailed insights and metrics for chalk-animation
npm install chalk-animation
Typescript
Module System
Min. Node Version
Node Version
NPM Version
88.1
Supply Chain
99
Quality
74.9
Maintenance
100
Vulnerability
99.6
License
JavaScript (99.36%)
Shell (0.64%)
Total Downloads
2,240,542
Last Day
2,087
Last Week
13,044
Last Month
62,572
Last Year
589,353
2,144 Stars
53 Commits
73 Forks
11 Watching
1 Branches
7 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.3
Package Id
chalk-animation@2.0.3
Unpacked Size
12.14 kB
Size
4.71 kB
File Count
5
NPM Version
8.15.0
Node Version
16.17.0
Cumulative downloads
Total Downloads
Last day
-37.4%
2,087
Compared to previous day
Last week
-34.3%
13,044
Compared to previous week
Last month
6.5%
62,572
Compared to previous month
Last year
26%
589,353
Compared to previous year
Colorful animations in terminal output
Name | Preview |
---|---|
rainbow | ![]() |
pulse | ![]() |
glitch | ![]() |
radar | ![]() |
neon | ![]() |
karaoke | ![]() |
1$ npm i chalk-animation
1import chalkAnimation from 'chalk-animation'; 2 3chalkAnimation.rainbow('Lorem ipsum dolor sit amet');
You can stop and resume an animation with stop()
and start()
.
When created, the instance of chalkAnimation starts automatically.
1const rainbow = chalkAnimation.rainbow('Lorem ipsum'); // Animation starts 2 3setTimeout(() => { 4 rainbow.stop(); // Animation stops 5}, 1000); 6 7setTimeout(() => { 8 rainbow.start(); // Animation resumes 9}, 2000); 10
Anything printed to the console will stop the previous animation automatically
1chalkAnimation.rainbow('Lorem ipsum'); 2setTimeout(() => { 3 // Stop the 'Lorem ipsum' animation, then write on a new line. 4 console.log('dolor sit amet'); 5}, 1000);
Change the animation speed using a second parameter. Should be greater than 0, default is 1.
1chalkAnimation.rainbow('Lorem ipsum', 2); // Two times faster than default
Change the animated text seamlessly with replace()
1let str = 'Loading...'; 2const rainbow = chalkAnimation.rainbow(str); 3 4// Add a new dot every second 5setInterval(() => { 6 rainbow.replace(str += '.'); 7}, 1000);
Manually render frames with render()
, or get the content of the next frame with frame()
1const rainbow = chalkAnimation.rainbow('Lorem ipsum').stop(); // Don't start the animation 2 3rainbow.render(); // Display the first frame 4 5const frame = rainbow.frame(); // Get the second frame 6console.log(frame);
1# Install package globally 2$ npm install --global chalk-animation
$ chalk-animation --help
Colorful animations in terminal output
Usage
$ chalk-animation <name> [options] [text...]
Options
--duration Duration of the animation in ms, defaults to Infinity
--speed Animation speed as number > 0, defaults to 1
Available animations
rainbow
pulse
glitch
radar
neon
karaoke
Example
$ chalk-animation rainbow Hello world!
MIT © Boris K
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
8 existing vulnerabilities detected
Details
Reason
Found 4/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
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@types/chalk-animation
TypeScript definitions for chalk-animation
@figliolia/chalk-animation
An ESM/Common.js compatible typescript port of the popular 'chalk-animation' library
shell-artist
shell-artist is a package that provides a simplified logging API. It takes some of the best npm packages, ties them together and wraps them around to your favorite Web API i.e. console.
@rxan/figletify
A Pretty CLI tool to generate ASCII / Figlet Text