chalk-animation
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -5,5 +5,5 @@ #!/usr/bin/env node | ||
if (process.argv.length < 4) { | ||
console.error('usage: chalk-animation <name> [text...]'); | ||
console.error('\navailable animations:\n'); | ||
console.error(Object.keys(chalkAnim).join('\n')); | ||
console.error('Usage\n $ chalk-animation <name> [text...]'); | ||
console.error('\nAvailable animations\n ' + Object.keys(chalkAnim).join('\n ')); | ||
console.error('\nExample\n $ chalk-animation rainbow Hello world!'); | ||
process.exit(2); | ||
@@ -10,0 +10,0 @@ } |
@@ -148,3 +148,3 @@ 'use strict'; | ||
console.log(''); | ||
log(''); | ||
currentAnimation.start(); | ||
@@ -151,0 +151,0 @@ return currentAnimation; |
{ | ||
"name": "chalk-animation", | ||
"description": "Colorful animations in terminal stdout", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Boris K", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/bokub/chalk-animation/issues", |
@@ -24,3 +24,3 @@ # chalk-animation | ||
``` | ||
```bash | ||
$ npm install --save chalk-animation | ||
@@ -70,4 +70,28 @@ ``` | ||
## Dependencies | ||
## CLI mode | ||
```bash | ||
# Install package globally | ||
$ npm install --global chalk-animation | ||
``` | ||
``` | ||
$ chalk-animation --help | ||
Usage | ||
$ chalk-animation <name> [text...] | ||
Available animations | ||
rainbow | ||
pulse | ||
glitch | ||
radar | ||
neon | ||
Example | ||
$ chalk-animation rainbow Hello world! | ||
``` | ||
## Related | ||
- [gradient-string](https://github.com/bokub/gradient-string) - Output gradients to terminal | ||
@@ -74,0 +98,0 @@ - [chalk](https://github.com/chalk/chalk) - Output colored text to terminal |
52260
15
173
102