Skip to content

Commit b0a27e1

Browse files
committed
updates
1 parent f6471b1 commit b0a27e1

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

LICENSE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/
@@ -187,7 +186,7 @@
187186
same "printed page" as the copyright notice for easier
188187
identification within third-party archives.
189188

190-
Copyright 2018 Google Inc.
189+
Copyright [yyyy] [name of copyright owner]
191190

192191
Licensed under the Apache License, Version 2.0 (the "License");
193192
you may not use this file except in compliance with the License.
@@ -199,4 +198,4 @@
199198
distributed under the License is distributed on an "AS IS" BASIS,
200199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201200
See the License for the specific language governing permissions and
202-
limitations under the License.
201+
limitations under the License.

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
# redaxios
22

3-
The [axios API](https://github.com/axios/axios) implemented as a thin **800 byte** wrapper around `fetch()`.
3+
[Axios] has a great API that developers love. Redaxios provides that API in **800 bytes**, using native `fetch()`.
4+
5+
For those searching for ways to shave a few kilobytes off of their bundles, that's less than 1/5th of the size. This is made possible by using the browser's native [Fetch API][fetch], which is [supported in all modern browsers](https://caniuse.com/#feat=fetch) and polyfilled by most tools including Next.js, Create React App and Preact CLI.
6+
7+
### Can I just use Axios?
8+
9+
Yes! Axios is an excellent module. In fact, Redaxios exists so that you can use its API in cases where it's difficult to justify the dependency. Instead of having to choose between Axios and Fetch, Redaxios provides a middle-ground between the two.
10+
11+
[axios]: https://github.com/axios/axios
12+
[fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export default (function create(defaults) {
6464
axios.put = createMethod('put', true);
6565
axios.patch = createMethod('patch', true);
6666

67-
// hmmm.
6867
axios.all = Promise.all;
6968
axios.spread = function(fn) {
7069
return function (results) {

0 commit comments

Comments
 (0)