0.0.4 • Published 7 years ago

sm-fetcher v0.0.4

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

Installation

npm install sm-fetcher --save

Usage

es5

const fetcher = require('sm-fetcher');

es6 - es7

import fetcher from 'sm-fetcher';

async - await

let fetchResult = await fetcher.post(routing.posts.login, { email: email, pass: pass });

promise

fetcher.post(routing.posts.login, { param1: val, param2: val2 }).then(
    (data) => { console.log(data) },
    (error) => { console.error(data) }
);
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago