ky-universal
Use Ky in both Node.js and browsers (by sindresorhus)
ky
π³ Tiny & elegant JavaScript HTTP client based on the browser Fetch API (by sindresorhus)
Our great sponsors
ky-universal | ky | |
---|---|---|
1 | 21 | |
668 | 11,428 | |
- | - | |
4.2 | 7.1 | |
8 months ago | 8 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ky-universal
Posts with mentions or reviews of ky-universal.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-26.
-
The 5 best HTTP request API`s for Javascript
Supports all modern browsers like Chrome, Firefox, Safari. For Internet Explorer support, Ky provides an alternative package, Ky-Universal, not sure why they still bother.
ky
Posts with mentions or reviews of ky.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-20.
-
Lightweight fetch wrapper alternative to axios?
I prefer to have less dependencies and node includes fetch now but if you really want a wrapper ky adds some nice features such as throwing for non-2xx response codes.
- The app router is not production-ready yet
-
Axios reaches 1.0.0
ky (3KB fetch-wrapper) has interceptors (we call them hooks).
-
The 5 best HTTP request API`s for Javascript
Ky is a relatively new Javascript package that can be used for making asynchronous HTTP requests from the front end of a web application. Itβs built on top of the native Fetch API with a simpler syntax and additional functionality.
-
fetch() In Node.js Core: Why You Should Care
Here is link number 1 - Previous text "ky"
I usually use fetch or node-fetch, but recently discovered ky which is just a very light-weight convenience layer on top of fetch that does what I would usually do manually for bigger projects: setting a base URL, specifying which status codes are considered as "failed", setting custom headers for all requests, etc.
- Cancel http request when component is unmounted
-
Best HTTP request library that works on both Deno and Node.js?
I can recommend ky https://github.com/sindresorhus/ky
-
Shoul I go with Axios or an other library?
Idk but ky https://github.com/sindresorhus/ky Looks very cool
What are some alternatives?
When comparing ky-universal and ky you can also consider the following projects:
axios - Promise based HTTP client for the browser and node.js
http-proxy - A full-featured http proxy for node.js
fetch - A Fetch API wrapper
wretch - A tiny wrapper built around fetch with an intuitive syntax. :candy:
graphql-request - Minimal GraphQL client
node-fetch - A light-weight module that brings the Fetch API to Node.js
superagent - Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
cancel-request-in-react
ketting - The HATEOAS client for javascript
fflate - High performance (de)compression in an 8kB package
got - π Human-friendly and powerful HTTP request library for Node.js