README
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) }
);