mini-fetch

1.0.0 • Public • Published

Mini Fetch

mini-fetch is a super minimalistic fetch interface polyfill in just a few lines of code. When you need to just fetch some stuff and don't need the whole thing in your code.

NOTE: not fully compliant with the standard interface, it is a very basic fetch -> then -> catch implementation.

NOTE: falls back to the real deal when a native interface is available

Usage

The usual

import fetch from `mini-fetch`;
 
fetch("http://nikolay.rocks").then((xhr)=> {
  // do stuff
});

Copyright & License

All code in this repository is released under the terms of the MIT license

Copyright (C) 2015 Nikolay Nemshilov

Readme

Keywords

Package Sidebar

Install

npm i mini-fetch

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nikolay_nemshilov