mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-22 14:07:21 +09:00
Improve example
This commit is contained in:
parent
2080bd4e8d
commit
a410ebaf6d
13
README.md
13
README.md
@ -25,7 +25,18 @@ Usage
|
||||
``` javascript
|
||||
import summaly from 'summaly';
|
||||
|
||||
const info = await summaly('http://example.com');
|
||||
const summary = await summaly('http://elephant.2chblog.jp/archives/52025138.html');
|
||||
|
||||
console.log(summary); // will be ... ↓
|
||||
/*
|
||||
{
|
||||
title: 'モバP「ありすと言えばお漏らし。お漏らしと言えばありす」 : エレファント速報:SSまとめブログ',
|
||||
icon: 'http://livedoor.blogimg.jp/tmg24news/imgs/9/5/favicon.ico',
|
||||
description: '1:以下、名無しにかわりましてVIPがお送りします:2013/03/30(土) 14:57:29.09 ID:An34eOmY0モバP「反論が あるやつもいるかもしれない」 モバP「だが俺の主張も聞いてほしい! お漏らしさせるならありすが一番だ!」 日菜子「むふふ……いきなりそんなことを大声で',
|
||||
thumbnail: 'http://livedoor.blogimg.jp/tmg24news/imgs/8/d/8df6e1a0-s.jpg',
|
||||
sitename: 'エレファント速報:SSまとめブログ'
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
License
|
||||
|
Loading…
x
Reference in New Issue
Block a user