fmt-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

fmt-api-client

A small client library for FMT APIs written in Typescript.

Features

  • Tiny size
  • Built-in Typescript support
  • Easly create API requests

Installation

npm i fmt-api-client

Or

yarn add fmt-api-client

Usage

Import fmt-api-client module in your project and initialize it optionally with your baseUrl, token & locale.

import FMT from "fmt-api-client";

const FmtClient = new FMT({ token: "token", locale: "en" });

FmtClient.getOwners().then((data) => {
  console.log(data);
});

FmtClient.getTrucks().then((data) => {
  console.log(data);
});

Package Sidebar

Install

npm i fmt-api-client

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

62 kB

Total Files

26

Last publish

Collaborators

  • bahraq