{"library":"smart-http","title":"smart-http","description":"A minimal HTTP client library for Node.js with a focus on simplicity and ease of use. Version 1.2.0 is the current stable release. The package provides basic HTTP request functionality with automatic JSON parsing, support for custom headers, and stream handling. It differentiates itself by requiring no external dependencies and offering a straightforward API for common use cases, though it lacks advanced features like interceptors or cancellation found in larger libraries. Released on an ad-hoc cadence with no recent updates.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install smart-http"],"cli":null},"imports":["import http from 'smart-http'","import { request } from 'smart-http'","import SmartHttp from 'smart-http'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import http from 'smart-http';\n\nasync function fetchData() {\n  try {\n    const response = await http.get('https://api.example.com/data', {\n      headers: { 'Authorization': `Bearer ${process.env.API_KEY ?? ''}` }\n    });\n    console.log(response.data);\n  } catch (error) {\n    console.error('Request failed:', error);\n  }\n}\n\nfetchData();","lang":"typescript","description":"Shows a basic GET request with async/await, environment variable for auth, and error handling.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}