Skip to content

Commit 4c7b761

Browse files
committed
0.1.0 - Add screenshots to readme, renamed 'themes' > 'built-in gradients'
1 parent ec7ba69 commit 4c7b761

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
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!');
5154
console.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

examples/themes.js renamed to examples/built-in.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Run with npm run-script themes
1+
// Run with npm run-script built-in
22
const gradient = require('..');
33

44
const log = console.log;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {
@@ -40,6 +40,6 @@
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
}

0 commit comments

Comments
 (0)