@bishal-shrestha/rest-client
Version:
A lightweight and flexible REST API client for JavaScript and TypeScript, supporting CommonJS and ES modules (ESM). Features include HTTP methods (GET, POST, PUT, PATCH, DELETE), built-in retry policies with exponential backoff, request lifecycle hooks fo
12 lines • 447 B
JavaScript
/**
* Main entry point for the Rest Client library.
*
* Exports core classes for API interaction, payload handling, and utility functions.
*
* @module @bishal-shrestha/rest-client
*/
import RestClient from './rest/RestClient';
export { shouldRetry } from './policies/retry-policy';
export { default as RestClient } from './rest/RestClient';
export { default as RestClientOptions } from './rest/RestClientOptions';
export default RestClient;