Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 5, 2017
1 parent 135530b commit 337945d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ summaly(url[, opts])
```

### Options
| Property | Type | Description | Default |
| :------------------ | :-------- | :-------------------------- | :------ |
| **followRedirects** | *boolean* | γƒͺγƒ€γ‚€γƒ¬γ‚―γƒˆγ‚’θ§£ζ±Ίγ™γ‚‹γ‹γ©γ†γ‹ | `true` |
| Property | Type | Description | Default |
| :------------------ | :--------------------- | :-------------------------- | :------ |
| **followRedirects** | *boolean* | γƒͺγƒ€γ‚€γƒ¬γ‚―γƒˆγ‚’θ§£ζ±Ίγ™γ‚‹γ‹γ©γ†γ‹ | `true` |
| **plugins** | *plugin[] (see below)* | Custom plugins | `null` |

#### Plugin
``` typescript
interface IPlugin {
test: (url: URL.Url) => boolean;
summary: (url: URL.Url) => Promise<ISummary>;
}
```

### Returns
A Promise of an Object that contains properties below:
Expand Down

0 comments on commit 337945d

Please sign in to comment.