@lvchengbin/biu

0.1.8 • Public • Published

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

Package Sidebar

Install

npm i @lvchengbin/biu

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

293 kB

Total Files

16

Last publish

Collaborators

  • lvchengbin