0.0.5 β’ Published 6 months ago
@httpx/encode v0.0.5
@httpx/encode
Simple baseion helpers that works on node, browsers, edge and Cloudflare workers.
Install
$ npm install @httpx/encode
$ yarn add @httpx/encode
$ pnpm add @httpx/encodeFeatures
- πΒ Lightweight (starts at ~600B)
- π‘οΈΒ Tested on node 18-22, browser, cloudflare workers and runtime/edge.
- πΒ Works cross-realms (browser, edge, node, cloudflare...)
- ποΈΒ Available in ESM and CJS formats.
Documentation
π Official website or GitHub Readme
Quickstart
Api
Usage
Benchmarks
Performance is continuously monitored thanks to codspeed.io.
See benchmark file for details.
Bundle size
Bundle size is tracked by a size-limit configuration
| Scenario (esm) | Size (baseed) |
|---|---|
import { baseor } | ~ 562B |
For CJS usage (not recommended) track the size on bundlephobia.
Compatibility
| Level | CI | Description |
|---|---|---|
| Node | β | CI for 18.x, 20.x & 22.x. |
| Browser | β | Tested with latest chrome (vitest/playwright) |
| Browserslist | β | > 95% on 01/2025. defaults, chrome >= 96, firefox >= 105, edge >= 113, safari >= 15, ios >= 15, opera >= 103, not dead |
| Edge | β | Ensured on CI with @vercel/edge-runtime. |
| Cloudflare | β | Ensured with @cloudflare/vitest-pool-workers (see wrangler.toml |
| Typescript | β | TS 5.4 + / are-the-type-wrong checks on CI. |
| ES2022 | β | Dist files checked with es-check |
| Performance | β | Monitored with codspeed.io |
For older browsers: most frontend frameworks can transpile the library (ie: nextjs...)
Contributors
Contributions are welcome. Have a look to the CONTRIBUTING document.
Sponsors
If my OSS work brightens your day, let's take it to new heights together! Sponsor, coffee, or star β any gesture of support fuels my passion to improve. Thanks for being awesome! πβ€οΈ
Special thanks to
License
MIT Β© SΓ©bastien Vanvelthem and contributors.