Socket
Socket
Sign inDemoInstall

@eolme/fetchit

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @eolme/fetchit

Promise based HTTP client with compatible API.


Version published
Weekly downloads
19
increased by1800%
Maintainers
1
Install size
26.7 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 20 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc