{"library":"btch-http","type":"library","category":null,"description":"btch-http is a lightweight and type-safe HTTP client for Node.js, built directly on the Node.js `https` module, ensuring zero external dependencies. The current stable version is 2.0.3, with recent minor updates following a major version 2.0.0 release. It differentiates itself by offering full TypeScript support out-of-the-box, smart error handling that consolidates network, timeout, and HTTP status code (>=300) errors into a custom `HttpError` class, and comprehensive timeout support. It provides both a quick one-liner `HttpGet` function for simple GET requests with URL encoding and a full-featured `HttpClient` class for more complex interactions involving configurable base URLs, versions, default headers, and POST requests with JSON bodies or custom headers. It requires Node.js >=20.18.1.","language":"javascript","status":"active","version":"2.0.3","tags":["javascript","http","https","client","typescript","api"],"last_verified":"Wed May 27","install":[{"cmd":"npm install btch-http","imports":["import { HttpGet } from 'btch-http';","import { HttpClient } from 'btch-http';","import { HttpError } from 'btch-http';","import type { HttpClientConfig } from 'btch-http';"]},{"cmd":"yarn add btch-http","imports":[]},{"cmd":"pnpm add btch-http","imports":[]}],"homepage":null,"github":"https://github.com/hostinger-bot/btch-http","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/btch-http","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/btch-http/compatibility"}}