New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ts-bind/client

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@ts-bind/client

Tool to consume a TsBind API and use its typing.

unpublished
latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
2
Created
Source

@ts-bind/client

Tool to consume a TsBind API and use its typing.

Documentation

Find all @ts-bind/client documentation here

Installation

npm install @ts-bind/client

Key Features

  • [Light module] TsBind is packaged in such a way that it takes up as little space as possible.
  • [Shared Typing] Establishes a link with the typing written in the API, if there is a change it will be detected in the client.
  • [File uploads] Upload files from a client or from a Nodejs application, you only need its Buffer.
  • [Server Support] The TsBind client is compatible for both web applications and server applications.

Basic Example

import createClient from "@ts-bind/client";

// Controllers <- typeof of the API controllers

const api = createClient<Controllers>({
  url: "http://localhost:3000/",
});

(async () => {
  try {
    console.log(await api.ping());
  } catch (error) {
    console.log(error);
  }
})();

Keywords

TsBind

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts