Skip to content

v57/hub-service

Repository files navigation

Usage

Start hub process

import { Hub } from 'hub-lite'
new Hub()

Create hub service

import { Service } from 'hub-service'
new Service().post('hash/sha256', body => new Bun.SHA256().update(body).digest('hex')).start()

Client api

import { Client } from 'hub-client'
const client = new Client()
const hash = await client.post('hash/sha256', 'Hello World')
console.log(hash)

About

Service library that connects to the hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published