Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 20, 2018
1 parent fca0235 commit 5093dc5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ $ npm install --save loading-cli
# Usage

```js
var loading = require('loading-cli');
var load = loading("loading text!!")

load.start()
const loading = require('loading-cli');
const load = loading("loading text!!").start()

setTimeout(function(){
load.color = 'yellow';
Expand All @@ -31,6 +29,19 @@ setTimeout(function(){
},3000)
```

Custom text color [colors-cli](https://github.com/jaywcjlove/colors-cli)

```js
const color = require('colors-cli/toxic');
const loading = require('loading-cli');

const load = loading("loading text!!".blue).start();
// stop
setTimeout(function(){
load.stop()
},3000)
```

# API

## loading([options|text])
Expand Down

0 comments on commit 5093dc5

Please sign in to comment.