mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-06-05 12:57:23 +09:00
docs
This commit is contained in:
parent
135530b947
commit
337945d5bb
15
README.md
15
README.md
@ -21,9 +21,18 @@ summaly(url[, opts])
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
| Property | Type | Description | Default |
|
| Property | Type | Description | Default |
|
||||||
| :------------------ | :-------- | :-------------------------- | :------ |
|
| :------------------ | :--------------------- | :-------------------------- | :------ |
|
||||||
| **followRedirects** | *boolean* | リダイレクトを解決するかどうか | `true` |
|
| **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
|
### Returns
|
||||||
A Promise of an Object that contains properties below:
|
A Promise of an Object that contains properties below:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user