@popcornjs/callback

Fast & efficient callback based wrapper for the http module for popcornjs

Usage no npm install needed!

<script type="module">
  import popcornjsCallback from 'https://cdn.skypack.dev/@popcornjs/callback';
</script>

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