This commit is contained in:
syuilo 2017-02-05 21:22:36 +09:00
parent 135530b947
commit 337945d5bb

View File

@ -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: