easy-fetch-wow
v1.0.2
Published
Promise based using XMLHttpRequest to get data
Downloads
2
Readme
easy-fetch
Promise based using XMLHttpRequest to get data
Install
npm install easy-fetch-wow -S
Usage
import easyFetch from 'easy-fetch-wow'
easyFetch({
url: './test.json',
method: 'post',
params: {
a: 1,
b: 2
}
)}.then(res => {
console.log(res)
}).catch(e => {
// do something
})