webext-polyfill-kinda:在模块中使用的围绕“ chrome。*” API的超轻量级包装。 如果直接在扩展程序中使用`webextension-polyfill`,则更可取

时间:2024-06-15 01:58:04
【文件属性】:

文件名称:webext-polyfill-kinda:在模块中使用的围绕“ chrome。*” API的超轻量级包装。 如果直接在扩展程序中使用`webextension-polyfill`,则更可取

文件大小:5KB

文件格式:ZIP

更新时间:2024-06-15 01:58:04

JavaScript

webext-polyfill-kinda chrome.*超轻质包装纸chrome.*模块中使用的API。 :check_mark_button: 发布自己的微模块时,请使用此模块。 这避免了将webextension-polyfill作为子依赖项导入。 :cross_mark: 如果您直接在扩展程序中需要约定的API,请不要使用此模块。 更加安全。 :warning: 此软件包使用起来并不完全安全,因为它盲目地包装了chrome.* API,无论它是否支持它们。 :warning: 该软件包会自动使用browser.* API,即使该扩展名只是对其进行了填充。 请先在每个浏览器中测试您的模块,然后再假设它可以工作,或者更喜欢使用webextension-polyfill 。 安装 npm install webext-polyfill-kinda 用法 import chromeP from 'webext-polyfill-kinda' ; (


【文件预览】:
webext-polyfill-kinda-master
----.gitignore(72B)
----package.json(782B)
----.npmrc(19B)
----index.js(623B)
----.github()
--------workflows()
----license(1KB)
----readme.md(2KB)
----.gitattributes(12B)
----.editorconfig(216B)
----index.d.ts(24B)

网友评论