Api Calls Buffer

When your api object takes a few ticks to initialize, use this package to buffer its usage then play it on the real one!

Supported in ES2015 and above.

Installation

npm i api-calls-buffer --save

Usage

import { createBuffer } from " api-calls-buffer " ; ; ; api . whatever . method . i . desire ( 1 , ' 2 ' , 3 , Promise . resolve ( 4 ) ) ; Promise . resolve ( ) . then ( ) ;

Running the example

After cloning, run:

npm i & npm start

For running the tests: