@eolme/fetchit
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

fetchit Version Badge

Size Downloads Build Status Greenkeeper License Fetchit

Promise based HTTP client with compatible API.

Installation

npm install @eolme/fetchit --save

Note: You will also need a Promise polyfill for older browsers.

Usage

API

Soon.

Importing

Simple importing fetchit function:

import { fetchit } from '@eolme/fetchit';

fetchit('npmjs.com').then((response) => {
    console.log(response);
});

If for some reason you need to access the fetchit function with another name, it is available via exports:

import fetch from '@eolme/fetchit';

fetch('npmjs.com').then((response) => {
    console.log(response);
});

This approach can be used to, for example, use as replacement for original fetch function.

Readme

Keywords

Package Sidebar

Install

npm i @eolme/fetchit

Weekly Downloads

18

Version

3.1.0

License

MIT

Unpacked Size

26.5 kB

Total Files

11

Last publish

Collaborators

  • eolme