# @dbc-tech/http-kit

> A Node.js package for managing HTTP client requests

Latest version **2.0.0** (published 2024-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dbc-tech/http-kit
pnpm add @dbc-tech/http-kit
yarn add @dbc-tech/http-kit
bun add @dbc-tech/http-kit
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-02-19 |
| First published | 2023-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 78.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Deep Blue Company |
| Maintainers | neildobson |

## Links

- npm: https://www.npmjs.com/package/@dbc-tech/http-kit
- Repository: https://github.com/nad-au/http-kit
- npm.io page: https://npm.io/package/@dbc-tech/http-kit

## Dependencies (2)

- [got-cjs](https://npm.io/package/got-cjs.md) ^12.3.1
- [cockatiel](https://npm.io/package/cockatiel.md) ^3.1.1

## Recent versions

- 2.0.0 (latest) — 2024-02-19
- 1.4.9 — 2023-07-12
- 1.4.8 — 2023-07-12
- 1.4.7 — 2023-07-02
- 1.4.6 — 2023-07-01
- 1.4.5 — 2023-07-01
- 1.4.4 — 2023-06-27
- 1.4.3 — 2023-06-27
- 1.4.2 — 2023-06-27
- 1.4.1 — 2023-06-27
- 1.4.0 — 2023-06-26
- 1.3.0 — 2023-06-26
- 1.2.2 — 2023-06-23
- 1.2.1 — 2023-06-22
- 1.2.0 — 2023-06-19
- … 6 more at https://npm.io/package/@dbc-tech/http-kit/versions

## README

# http-kit

A Node.js package for managing HTTP client requests

## Install

```
npm install @dbc-tech/http-kit
```

## Utilities

### `plainToDto`

This method converts a plain object to a DTO object using the provided DTO class. If the DTO class is not provided, it return the plain object as is:

```ts
import { Type } from 'class-transformer';
import { plainToDto } from './plain-to-dto';

class Dto {
  id: number;
  name: string;

  @Type(() => Date)
  createdAt: Date;

  @Type(() => Date)
  updatedAt: Date;

  @Type(() => Hit)
  hits: Hit[];
}

const dto = plainToDto(plain, Dto);
```

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