mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-15 02:27:34 +09:00
Updae
This commit is contained in:
parent
bfac32b802
commit
2080bd4e8d
15
README.md
15
README.md
@ -1,6 +1,8 @@
|
|||||||
summaly
|
summaly
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
[![][npm-badge]][npm-link]
|
||||||
|
|
||||||
Get any web page's summary.
|
Get any web page's summary.
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
@ -9,7 +11,15 @@ Installation
|
|||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
`(url: string) => Promise<string>`
|
```
|
||||||
|
(url: string) => Promise<{
|
||||||
|
title: string;
|
||||||
|
icon: string;
|
||||||
|
description: string;
|
||||||
|
thumbnail: string;
|
||||||
|
sitename: string;
|
||||||
|
}>
|
||||||
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
``` javascript
|
``` javascript
|
||||||
@ -21,3 +31,6 @@ const info = await summaly('http://example.com');
|
|||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
[MIT](LICENSE)
|
[MIT](LICENSE)
|
||||||
|
|
||||||
|
[npm-link]: https://www.npmjs.com/package/summaly
|
||||||
|
[npm-badge]: https://img.shields.io/npm/v/summaly.svg?style=flat-square
|
||||||
|
Loading…
x
Reference in New Issue
Block a user