@84codes/sparoid 中文文档教程
SPAroid
SPAroid 客户端的 JavaScript/NodeJS 实现。
Usage
import * as sparoid from '@84codes/sparoid'
// Sparoid will read the environment variables SPAROID_KEY and SPAROID_HMAC_KEY
await sparoid.auth(host, port, key, hmac_key)
// alternatively
await sparoid.auth(host, port)
或者在 CommonJS 环境中:
import('@84codes/sparoid').then((sparoid) => {
sparoid.auth(host, port).then(() => { console.log("authed") })
})
SPAroid
JavaScript/NodeJS implemention of the SPAroid client.
Usage
import * as sparoid from '@84codes/sparoid'
// Sparoid will read the environment variables SPAROID_KEY and SPAROID_HMAC_KEY
await sparoid.auth(host, port, key, hmac_key)
// alternatively
await sparoid.auth(host, port)
Or in CommonJS environments:
import('@84codes/sparoid').then((sparoid) => {
sparoid.auth(host, port).then(() => { console.log("authed") })
})