postfetch

0.0.4 • Public • Published

postFetch

a microlibrary for fetching stuff

Will explain more later. Maybe.

Importing

import postFetch from 'postFetch';

GET requests

postFetch.getData("url goes here", [{key/value pairs of parameters of get request}]);

POST requests

postFetch.postData("url goes here", {object you want to pass through});

PUT requests

postFetch.putData("url goes here", {object you want to pass through});

DELETE requests

postFetch.deleteData("url goes here", {object you want to pass through});

Package Sidebar

Install

npm i postfetch

Weekly Downloads

2

Version

0.0.4

License

ISC

Unpacked Size

3.42 kB

Total Files

3

Last publish

Collaborators

  • alekangelov