{"library":"snapreq","type":"library","category":null,"description":"snapreq is a cross-platform HTTP and WebSocket client with a single API across Node.js, web browsers, Expo, and React Native. Current stable version 0.0.5. It picks the right transport (Node http/https, fetch, or XMLHttpRequest) at runtime and zero runtime dependencies. Unlike alternatives (ky, got, node-fetch), snapreq enforces API consistency by raising SnapReqUnsupportedFeatureError for platform-specific gaps (e.g., Unix sockets in browsers) instead of silently changing behavior. ESM-only with JSDoc types checked by tsc. No barrel entry point; imports from subpaths to enable tree-shaking. Supports retry, timeouts, Unix sockets, TLS configuration, request cancellation, streaming, and automatic JSON parsing.","language":"javascript","status":"active","version":"0.0.5","tags":["javascript","http","fetch","websocket","client","expo","react-native","cross-platform","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install snapreq","imports":["import SnapReq from 'snapreq'","import SnapReqWebSocketClient from 'snapreq/websocket'","import { SnapReqHttpError } from 'snapreq/errors'","import { defaultRetryableError } from 'snapreq/retry'","import SnapReqResponse from 'snapreq/response'","import SnapReqHeaders from 'snapreq/headers'"]},{"cmd":"yarn add snapreq","imports":[]},{"cmd":"pnpm add snapreq","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"snapreq","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}