
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
该库包含为天翼云盘小程序提供能力的各种 api 封装,详细的 api 介绍和调用方式见 H5 小程序平台·文档中心
在项目中安装依赖
npm istall @21cnfe/ok --save
在项目入口文件中引入,如 main.js
import '@21cnfe/ok'
由于该库会在 window 对象上挂载一个名为 ok 的属性,后续所有的 api 都是通过其挂载的 ok 对象调用,无需做其他引入。
如 canIUse
ok.canIUse(apiName)
.then(res => {
console.log('当前API是否可用', res.data.result)
})
FAQs
基于天翼云盘APP的JS Bridge封装,提供更多原生能力。
We found that @21cnfe/ok demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.