Détail du package

@lvchengbin/biu

LvChengbin4MIT0.1.8

A library for network requesting using LocalCache for browsers.

biu, cache, request, post

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 => {

} );

biu.request

biu.jsonp

biu.ajax