# http-services-utilities

> This library was generated with [Nx](https://nx.dev).

Latest version **0.0.1** (published 2022-09-19) · 0 weekly downloads

## Install

```sh
npm install http-services-utilities
pnpm add http-services-utilities
yarn add http-services-utilities
bun add http-services-utilities
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-09-19 |
| First published | 2022-09-19 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pranalimohite |

## Links

- npm: https://www.npmjs.com/package/http-services-utilities
- npm.io page: https://npm.io/package/http-services-utilities

## Recent versions

- 0.0.1 (latest) — 2022-09-19

## README

# http-services-utilities

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test http-services-utilities` to execute the unit tests via [Jest](https://jestjs.io).

## Running lint

Run `nx lint http-services-utilities` to execute the lint via [ESLint](https://eslint.org/).


## This library provides us basic webservices utilities to perform CRUD operations in webapps.

## We are using "axios" libarry instaed web browser's "fetch" API.Below are some of the reasons:

1. Axios enjoys built-in XSRF protection.
2. Axios request is ok when status is 200 and statusText is ‘OK’, while for Fetch request is ok when    
   response object contains the ok property and hence if request ends up with 404 still in fetch it is not consider as error.
3. Axios performs automatic transforms of JSON data.Fetch is a two-step process when handling JSON data-   
   first, to make the actual request; second, to call the .json() method on the response.
4. Axios allows cancelling request and request timeout.Fetch does not.
5.  Axios has the ability to intercept HTTP requests.Fetch, by default, doesn’t provide a way to intercept 
    requests.
6. Axios has built-in support for download progress.Fetch does not support upload progress.
   Axios has wide browser support.	Fetch only supports Chrome 42+, Firefox 39+, Edge 14+, and Safari 10.1+ (This is known as Backward Compatibility).

---
_Source: https://npm.io/package/http-services-utilities · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
