1.0.5 • Published 7 years ago

eigen-fetch v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eigen-fetch

This project is a polyfill that implements a subset of the standard Fetch specification, enough to make fetch a viable replacement for most uses of XMLHttpRequest in traditional web applications.

Installation

npm install eigen-fetch --save 
yarn add eigen-fetch

Usage

import EigenFetch, { request, fetch } from 'eigen-fetch';
export default createWork(data) {
    return fetch(`/works`,{
        method: "POST",
        headers: {
            'Content-Type': 'application/json',
             credentials: "include" 
        },
        body: JSON.stringify(data)
    });
}

or 

export default createWork(data) {
    return EigenFetch.post(`/works`, data)
}
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago