cmd-animate
v1.0.0
Published
Simple and Smooth package for making ASCII Animations in the Terminal
Downloads
2
Maintainers
Readme
cmd-animate
Simple and Smooth package for making ASCII Animations in the Terminal
Installation
You can install cmd-clear-everywhere via npm:
npm install cmd-animate
Usage
To use cmd-clear-everywhere in your project, require the module and call the clear function:
const animator = require('cmd-animate');
// Clear the console screen
animator([frames],framelength);
//Here frames is an array of variables, that will be console.logged, one by one
//framelength is the duration of a single frame, in milliseconds
Usage
const animator = require('./index');
const frames = [
"Frame 1\n",
"Frame 2\n",
"Frame 3\n",
"Frame 4\n"
];
const framelength = 1500; // Duration of each frame in milliseconds
// Start the animation
animator(frames, framelength);
Contributing
Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute to the project.
License
This project is licensed under the ISC License.
Author: itsarnavsh