@lvchengbin/biu
v0.1.8
Published
A library for network requesting using [LocalCache](https://github.com/LvChengbin/localcache) for browsers.
Downloads
7
Maintainers
Readme
Biu
A library for network requesting using LocalCache for browsers.
Start
To install the package with npm:
$ npm i @lvchengbin/biu
Using the package in nodejs:
const biu = require( '@lvchengbin/biu' );
For ES6 module:
import biu from '@lvchengbin/biu';
Usage
biu.get
biu.get( url, {
fullResponse : true, // default false
params : {
x : 1,
y : 2
},
} ).then( response => {
} );
biu.post
biu.get( url, { rawBody : true, // default false params : { x : 1, y : 2 }, } ).then( response => {
} );