
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
kbone-api是一个能同时支持 小程序和 web 开发的多端 api 库。
下载 kbone-api
npm install kbone-api
通过 commonjs 的方式直接导出模块并使用:
import kboneAPI from 'kbone-api'
kboneAPI.request()
kboneAPI.showToast()
kboneAPI.showModal()
为了方便 Vue 开发,可以直接使用 Vue.use(kboneAPI) 来设置全局对象.
# main.js
import Vue from 'vue'
Vue.use(kboneAPI)
# logic code
<script>
export default {
name: "LoginComponents",
methods: {
gotologin() {
return this.$api.login().then(() => {
this.$api.showToast({
title: "登录成功",
})
})
},
getSetting() {
// 获取用户设置
return this.$api.getSetting()
.then(res => {
this.$api.showToast({
title: res.nickName || "零度的田"
})
})
}
}
}
</script>
MIT
FAQs
common api for developing cross-platform app
The npm package kbone-api receives a total of 66 weekly downloads. As such, kbone-api popularity was classified as not popular.
We found that kbone-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.