httpx

Collection of libs: http exceptions, dsn-parser...

MIT License

Downloads
67.2K
Stars
16
Committers
5

"do one thing" collection.

@httpx/assert

Lightweight assertions and typeguards starting at ~60b.

@httpx/exception

HTTP status errors with default message, instanceof, stack and nested error cause support. Lightweight, typical usage between 500b and 1300b. Includes convenience typeguards, optional contextual info and a built-in serializer to cover cross-environments challenges (RSC, SSR...).

@httpx/dsn-parser

DSN & JDBC string parser with query params support in a light and modern package.

@httpx/plain-object

Fast and lightweight utility functions to check if a value is a plain object.

@httpx/treeu

Fast and lightweight utilities to work with trees.

@httpx/memo-intl

LRU-based memoizer for Intl.NumberFormatter and Intl.DateFormatter constructors.

Contributors

Contributions are welcome. Take a look to the CONTRIBUTING docs or skip and try

# make a fork and clone it, then
yarn install
yarn g:test-unit
yarn g:lint
yarn g:typecheck

Support

Don't hesitate and open an issue.

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 © belgattitude and contributors.