@moonstone78/x-requests
v1.2.16
Published
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) [![NPM](https://img.shields.io/badge/NPM-%23CB3837.svg?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/package/@m
Downloads
7
Readme
@moonstone78/x-requests
Request lib build on fetch
Installation
Use the package manager npm to install @moonstone78/x-requests.
npm install @moonstone78/x-requests
Usage
import {
getData,
postData,
putData,
deleteData,
customData
} from '@moonstone78/x-requests'
# GetData
const data = await getData(url, headers)
# PostData
const data = await postData(url, data, headers)
# PutData
const data = await putData(url, data, headers)
# DeleteData
const data = await deleteData(url, headers)
# CustomData
const data = await customData(url, method, data, headers, options)