0.1.7 ā€¢ Published 3 years ago

tyfon-client v0.1.7

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

tyfon-client

An isomorphic http client for connecting to TyFON servers.

šŸ‘‰ Read this for more information.

Installation

npm i tyfon-client

Usage

import { invoke } from 'tyfon-client';

invoke('http://my-tyfon-server.cloud', 'methodName', 'arg1', { hellow: 'world' }, 42, ...)
  .then(console.log)
  .catch(err => { /* OOPS */ })
;

The address given MUST correspond to a TyFON server, where methodName is a remote function served by the server. tyfon-conventions will be used to turn the given method name into proper URL endpoint and HTTP method, and arguments will be JSON-serialized and attached to request body or query parameters (based on resolved HTTP method).

šŸ‘‰ Learn more about TyFON

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago