1.1.2 • Published 2 years ago

http-beautify v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

http beautify

Elegant HTTP client based on Axios

Table of Contents

Features

- All axios features
- Make HTTP requests
- Code clean on usage
- Reuse client HTTP
- Beautify implemetation

Installing

Using npm:

$ npm i http-beautify

Example

Module usage

import httpBeautify from "http-beautify";

Performing a GET request

import httpBeautify from "http-beautify";
import yourAxiosInstance from "axios";

class Users extends httpBeautify {
  constructor(id) {
    let relationship = { books: "books" };
    super(id, relationship, yourAxiosInstance);
  }
}

const users = new Users(id);

let data = users().show();
//this will build this URL: https://yourdomain.com/users
1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.0

2 years ago