文件名称:ssb-invites-schema:SSB中邀请和回复消息类型的验证
文件大小:18KB
文件格式:ZIP
更新时间:2024-05-28 11:47:59
JavaScript
ssb-invites-schema 验证invite和reply ssb消息的类型。 const { isInvite , isReply } = require ( 'scuttle-invite-schema' ) // Get something from your database server . get ( key , ( err , msg ) => { const { content } = msg . value // Check if its an invite according to JSON schema if ( isInvite ( content ) ) { // ... } // Check if its an invite reply according to JSON schema if ( isReply ( c
【文件预览】:
ssb-invites-schema-master
----index.js(620B)
----package.json(660B)
----test()
--------v1()
----package-lock.json(38KB)
----TODO.md(380B)
----src()
--------v1()
----README.md(456B)