0.1.0 • Published 6 years ago

@justbe-native-js/fetch-api v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Javascript Fetch api powered by Rxjs

Wrapper around javascript fetch api using rxjs methods and operators.

Installation

Use the node package manager npm to install @justbe-native-js/fetch-api.

npm install @justbe-native-js/fetch-api --save

Usage

import { FetchApi } from '@justbe-native-js/fetch-api';
constructor(){
    let url = 'https://jsonplaceholder.typicode.com/posts/1';
    let options = {};
    FetchApi.fetch(url, options).subscribe(res => {
        console.log(res);
    })
}

Fetch api options

    method?: 'GET' | 'POST' | 'PUT' | 'DELETE';//default GET;
    headers?: any;
    body?: any;

License

MIT

0.1.0

6 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago