oembed-parser:从给定的网页中提取oEmbed数据

时间:2024-03-16 18:51:30
【文件属性】:

文件名称:oembed-parser:从给定的网页中提取oEmbed数据

文件大小:35KB

文件格式:ZIP

更新时间:2024-03-16 18:51:30

nodejs parser oembed JavaScript

解析器 从给定的URL中提取嵌入的内容。 重要的提示: 演示版 安装 npm install oembed-parser 用法 import { extract , } from 'oembed-parser' ; const url = 'https://www.youtube.com/watch?v=8jPQjjsBbIc' ; extract ( url ) . then ( ( oembed ) => { console . log ( oembed ) ; } ) . catch ( ( err ) => { console . trace ( err ) ; } ) ; 蜜蜂 .extract(字符串url [,对象参数]) 从指定的网址提取嵌入的数据。 回报:一个承诺 可选参数params是带有它的对象,我们可以设置用于缩放嵌入大小以适合您的容器大小的maxwi


【文件预览】:
oembed-parser-main
----.eslintrc.json(112B)
----.gitignore(148B)
----package.json(918B)
----src()
--------main.js(766B)
--------utils()
--------main.test.js(3KB)
----LICENSE(1KB)
----index.js(148B)
----tsconfig.json(6KB)
----.github()
--------workflows()
----README.md(3KB)
----.eslintignore(112B)
----eval.js(342B)
----sync.js(2KB)
----reset.js(445B)
----index.d.ts(4KB)

网友评论