{"library":"popsicle-content-encoding","type":"library","category":null,"description":"This package, `popsicle-content-encoding`, provides a specialized middleware for the `Popsicle` HTTP client library, designed to transparently manage HTTP `Content-Encoding` compression and decompression. Currently at its initial stable release, version `1.0.0`, it emerged from the core `popsicle` project to offer a modular solution for handling content negotiation. The middleware automatically detects and adds appropriate `Accept-Encoding` headers to outgoing requests based on the Node.js runtime's supported compression algorithms (e.g., gzip, deflate, brotli). Upon receiving a response, it automatically decodes the body if a matching `Content-Encoding` header is present, simplifying client-side data handling. A key differentiator is its seamless integration within the `servie` and `popsicle` middleware composition pattern, abstracting away the complexities of manual compression negotiation and decompression. It operates passively if `Accept-Encoding` is already defined, allowing for manual override when necessary. Its release cadence is currently tied to user feedback and the broader `serviejs` ecosystem, with `1.0.0` marking its first standalone stable version.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","popsicle","encoding","compression","zip","brotli","gzip","typescript"],"install":[{"cmd":"npm install popsicle-content-encoding","imports":["import { contentEncoding } from 'popsicle-content-encoding';","import type { Options } from 'popsicle-content-encoding';","import type { Middleware } from 'servie';"]},{"cmd":"yarn add popsicle-content-encoding","imports":[]},{"cmd":"pnpm add popsicle-content-encoding","imports":[]}],"homepage":null,"github":"https://github.com/serviejs/popsicle-content-encoding","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/popsicle-content-encoding","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/popsicle-content-encoding/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Wed Jul 22","install_tag":null}}