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 66
77> Beautiful gradients in terminal stdout
88
9+ ![ gradient-string] ( http://i.imgur.com/CjukALo.png )
10+
11+
912## Install
1013
1114```
@@ -51,6 +54,18 @@ let coolString = coolGradient('This is a string colored with gradient-string!');
5154console .log (coolString);
5255```
5356
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+
5469## Dependencies
5570
5671- [ 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
22const gradient = require ( '..' ) ;
33
44const log = console . log ;
Original file line number Diff line number Diff line change 11{
22 "name" : " gradient-string" ,
33 "description" : " Beautiful gradients in terminal stdout" ,
4- "version" : " 0.0.2 " ,
4+ "version" : " 0.1.0 " ,
55 "author" : " Boris K" ,
66 "bugs" : " https://github.com/bokub/gradient-string/issues" ,
77 "dependencies" : {
4040 "scripts" : {
4141 "test" : " xo && ava" ,
4242 "demo" : " node examples/demo.js" ,
43- "themes " : " node examples/themes .js"
43+ "built-in " : " node examples/built-in .js"
4444 }
4545}
You can’t perform that action at this time.
0 commit comments