File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
> Beautiful gradients in terminal stdout
8
8
9
+ ![ gradient-string] ( http://i.imgur.com/CjukALo.png )
10
+
11
+
9
12
## Install
10
13
11
14
```
@@ -51,6 +54,18 @@ let coolString = coolGradient('This is a string colored with gradient-string!');
51
54
console .log (coolString);
52
55
```
53
56
57
+ ### Built-in gradients
58
+
59
+ #### Usage
60
+ ``` javascript
61
+ const gradient = require (' gradient-string' );
62
+
63
+ // Use the rainbow gradient
64
+ gradient .rainbow (' I love gradient-strings!' )
65
+ ```
66
+ #### Available built-in gradients
67
+ ![ Themes] ( http://i.imgur.com/nzFb9I5.png )
68
+
54
69
## Dependencies
55
70
56
71
- [ tinygradient] ( https://github.com/mistic100/tinygradient ) - Generate gradients
Original file line number Diff line number Diff line change 1
- // Run with npm run-script themes
1
+ // Run with npm run-script built-in
2
2
const gradient = require ( '..' ) ;
3
3
4
4
const log = console . log ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gradient-string" ,
3
3
"description" : " Beautiful gradients in terminal stdout" ,
4
- "version" : " 0.0.2 " ,
4
+ "version" : " 0.1.0 " ,
5
5
"author" : " Boris K" ,
6
6
"bugs" : " https://github.com/bokub/gradient-string/issues" ,
7
7
"dependencies" : {
40
40
"scripts" : {
41
41
"test" : " xo && ava" ,
42
42
"demo" : " node examples/demo.js" ,
43
- "themes " : " node examples/themes .js"
43
+ "built-in " : " node examples/built-in .js"
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments