@popcornjs/callback
v2.5.1
Published
Fast & efficient callback based wrapper for the http module for popcornjs
Downloads
18
Readme
@popcornjs/callback
A wrapper for the popcorn🍿 API.
Features:
- Written in TypeScript
- Built in Typings
- Callback based
- Only 1 dependency
- Super small
- Easy to use
- Uses @popcornjs/http to make requests
Example use:
import * as popcorn from '@popcornjs/callback';
popcorn.get(console.log); // logs data on the api with a get request from /
popcorn.post(body, console.log); // logs the data response from a post request