sinclairzx81

sinclairzx81/servicebox

Typed Web Services for NodeJS

TypeScript
25
0
Other

: The `metadata` property is experimental and subject to change. ```typescript import { Service, Method, Type } from '@sinclair/servicebox' const service = new Service({ 'add': new Method([], { request: Type.Tuple([ Type.Number(), Type.Number() ]), response: Type.Number() }, (context, [a, b]) => a + b)) }) const metadata = service.metadata console.log(metadata) // { // version: "0.0.0", // name: "Service", // methods: { // add: { // request: { // type: "array", // items: [ // { type: "number" }, // { type: "number" } // ] // }, // response: { type: "number" } // } // } // } ``` ## Links - [TypeBox](https://github.com/sinclairzx81/typebox)

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of sinclairzx81/servicebox

Account's avatar
Json Schema Type Builder with Static Type Resolution for TypeScript
Account's avatar
Format validation for Ajv v7+
Account's avatar
TypeScript definitions for mocha
Account's avatar
TypeScript definitions for node
Account's avatar
TypeScript definitions for node-fetch
Account's avatar
simple, flexible, fun test framework
Account's avatar
A light-weight module that brings Fetch API to node.js
Account's avatar
Run shell commands on file system events.
Account's avatar
A JavaScript task runner for node.
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
A zero configuration bundling tool for TypeScript.

Support the repos that depend on this repository

Top contributors

sinclairzx81's profile
sinclairzx81
36 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet