New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@koax/fetch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koax/fetch

Fetch effect driver and action creators.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

fetch

Build status Git tag NPM version Code style

Fetch effect driver and action creator.

Installation

$ npm install @koax/fetch

Usage

import koax from 'koax'
import {fetch, fetchEffect} from '@koax/fetch'

let app = koax()
app.use(fetchEffect())

app(fetch('google.com')).then((res) => res.status) // => 200

API

fetch(url, params)

Action creator. See sane-fetch for more details.

  • url - url
  • params - request paramaters

Returns: action object

fetchEffect()

Effect driver.

Returns: koax middleware

License

MIT

FAQs

Package last updated on 09 Feb 2016

Did you know?

Socket

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