mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-02 20:27:25 +09:00
change readme example (#126)
* change readme example * fix indent * fix indent 2 * fix url
This commit is contained in:
parent
285124e96b
commit
749e776d6f
22
README.md
22
README.md
@ -68,22 +68,22 @@ A Promise of an Object that contains properties below:
|
||||
``` javascript
|
||||
import summaly from 'summaly';
|
||||
|
||||
const summary = await summaly('http://elephant.2chblog.jp/archives/52025138.html');
|
||||
const summary = await summaly('https://www.youtube.com/watch?v=NMIEAhH_fTU');
|
||||
|
||||
console.log(summary); // will be ... ↓
|
||||
/*
|
||||
{
|
||||
title: 'モバP「ありすと言えばお漏らし。お漏らしと言えばありす」',
|
||||
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',
|
||||
title: '【楽曲試聴】「Stage Bye Stage」(歌:島村卯月、渋谷凛、本田未央)',
|
||||
icon: 'https://s.ytimg.com/yts/img/favicon-vfl8qSV2F.ico',
|
||||
description: 'http://columbia.jp/idolmaster/ 2018年7月18日発売予定 THE IDOLM@STER CINDERELLA GIRLS CG STAR LIVE Stage Bye Stage 歌:島村卯月、渋谷凛、本田未央 COCC-17495[CD1枚組] ¥1,200+税 収録内容 Tr...',
|
||||
thumbnail: 'https://i.ytimg.com/vi/NMIEAhH_fTU/maxresdefault.jpg',
|
||||
player: {
|
||||
url: null,
|
||||
width: null,
|
||||
height: null
|
||||
}
|
||||
sitename: 'エレファント速報:SSまとめブログ',
|
||||
url: 'http://elephant.2chblog.jp/archives/52025138.html'
|
||||
url: 'https://www.youtube.com/embed/NMIEAhH_fTU',
|
||||
width: 1280,
|
||||
height: 720
|
||||
},
|
||||
sitename: 'YouTube',
|
||||
url: 'https://www.youtube.com/watch?v=NMIEAhH_fTU'
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user