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
@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
npm install chalk-animation
Typescript
Module System
Min. Node Version
Node Version
NPM Version
92.3
Supply Chain
99
Quality
75.1
Maintenance
100
Vulnerability
99.6
License
JavaScript (99.36%)
Shell (0.64%)
Total Downloads
2,514,426
Last Day
2,898
Last Week
25,325
Last Month
90,815
Last Year
752,291
MIT License
2,151 Stars
53 Commits
72 Forks
10 Watchers
1 Branches
7 Contributors
Updated on May 05, 2025
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
-25%
2,898
Compared to previous day
Last Week
40.2%
25,325
Compared to previous week
Last Month
2.5%
90,815
Compared to previous month
Last Year
83.9%
752,291
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
Found 4/26 approved changesets -- score normalized to 1
Reason
9 existing vulnerabilities detected
Details
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
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-05-05
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