0.1.4 • Published 11 months ago

@iqrf/iqrf-repository-client v0.1.4

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
11 months ago

IQRF Repository JavaScript client

Build Status Test coverage NPM Version NPM Downloads Apache License API documentation

Installation

npm install @iqrf/iqrf-repository-client

How to use

Client is a wrapper around API methods of IQRF Repository providing shared configuration for Axios instance.

Instantiate with defaults

import { Client } from '@iqrf/iqrf-repository-client';

const client = new Client();

Instantiate with custom configuration

import { Client } from '@iqrf/iqrf-repository-client';

const config: AxiosRequestConfig = {
	baseURL: 'https://devrepo.iqrfalliance.org/api/',
};
const client = new Client({ config });

Instantiate with custom Axios instance advanced

import axios, { type AxiosRequestConfig } from 'axios';

import { Client } from '@iqrf/iqrf-repository-client';

const config: AxiosRequestConfig = {
	baseURL: 'https://repository.iqrfalliance.org/api/',
};
const axiosInstance = axios.create(config);
const client = new Client({ axiosInstance });
0.0.13

1 year ago

0.0.14

1 year ago

0.1.0

1 year ago

0.1.2

12 months ago

0.1.1

12 months ago

0.0.15

1 year ago

0.1.4

11 months ago

0.1.3

12 months ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago