@popcornjs/http
TypeScript icon, indicating that this package has built-in type declarations

2.4.0 • Public • Published

@popcornjs/http

A wrapper for the popcorn🍿 API.

Features:

  • Written in TypeScript
  • Built in Typings
  • Promise based
  • Only 1 dependency
  • Super small
  • Easy to use

Example use:

import * as popcorn from '@popcornjs/http';

// Because top level await doesnt exist :(
(async () => {
	// POST reqest
	const post = await popcorn.post({ eatMore: boolean, key: string, user: string });
	// GET reqest
	const get = await popcorn.get();

	console.log(post, get);

	// get returns stats
})();

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i @popcornjs/http

Weekly Downloads

0

Version

2.4.0

License

ISC

Unpacked Size

4.15 kB

Total Files

9

Last publish

Collaborators

  • tnt_man1671
  • salvage_dev