mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-06-03 20:07:19 +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
|
||||
| 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user