
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@redbuck/verify
Advanced tools
一个简单的验证弹窗.命令式调用,用户需要按照特定顺序点击canvas上的特定字符才能验证通过.
最终打包格式为umd,可<script>和import/require引入使用.
js: npm i @redbuck/verify或yarn add @redbuck/verify
css: 位于@redbuck/verifyr/lib/verify.css
Verify(options) // => promise
// 为了便于async/await使用,只会resolve,返回{success: Boolean}
options:
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| getCodeAsync | Function | 100 | 截图框及输出尺寸 |
const getCode = () => {
let text = ranger(1000, 9999) + '';
return {
text,
img: '/static/2.png',
expectText: text.split('').reverse().join(''),
}
}
Verify({
// 刷新,获取新数据
getCodeAsync(callback) {
const options = getCode()
callback(options)
},
})
.then(result => {
// 验证成功返回
console.log(result.success)
})
FAQs
robot verify
We found that @redbuck/verify 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.