{"library":"bent","type":"library","category":null,"description":"Bent is a small, functional, and async/await-based HTTP client designed for both Node.js and browsers. Currently stable at version 7.3.12, it provides a fluent API for making HTTP requests with a focus on type-driven configuration. Key differentiators include its remarkably small bundle size (especially for browsers, where it's built on `fetch` with no external dependencies), flexible option parsing (inferring method, format, status codes, and base URL from argument types), and explicit error handling for unacceptable response statuses. While mature, its release cadence is not high, indicating stability over rapid feature churn. It differs from alternatives by prioritizing a functional, curried API over object-oriented design and by requiring explicit declaration of accepted status codes, which helps prevent unexpected success conditions.","language":"javascript","status":"active","version":"7.3.12","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bent","imports":["const bent = require('bent')","const getJSON = bent('json', 'GET');","import bent from 'bent'; // When used in browser via a bundler"]},{"cmd":"yarn add bent","imports":[]},{"cmd":"pnpm add bent","imports":[]}],"homepage":null,"github":"https://github.com/mikeal/bent","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bent","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/bent/compatibility"}}