# mtm-http

Latest version **0.0.31** (published 2025-05-15) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install mtm-http
pnpm add mtm-http
yarn add mtm-http
bun add mtm-http
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.31 |
| Published | 2025-05-15 |
| First published | 2019-08-20 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 42.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Martin Peter Madsen |
| Maintainers | merlinthemagic |

## Links

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

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [mtm-auto](https://npm.io/package/mtm-auto.md) 0.0.0 - 1.0.0

## Recent versions

- 0.0.31 (latest) — 2025-05-15
- 0.0.30 — 2022-01-09
- 0.0.29 — 2021-06-23
- 0.0.28 — 2021-06-17
- 0.0.27 — 2021-06-02
- 0.0.26 — 2021-02-17
- 0.0.25 — 2021-02-10
- 0.0.24 — 2021-02-10
- 0.0.23 — 2021-02-08
- 0.0.22 — 2021-01-15
- 0.0.21 — 2020-12-28
- 0.0.20 — 2020-11-17
- 0.0.19 — 2020-07-19
- 0.0.18 — 2020-06-28
- 0.0.17 — 2020-06-26
- … 14 more at https://npm.io/package/mtm-http/versions

## README

# MtmHttp


MtmHttp is a wrapper for the different http clients available

For node.js, you can use this command to install:

```
npm install mtm-http
```

import the service:

```
import { MtmHttp } from "mtm-http";
```

USE assuming you have injected the service using the _mtmHttp variable name:

```

	var httpObj	= this._mtmHttp.getClients().getNative();
	var url		= "https://www.example.com/myUrl";
	httpObj.getPromise(url).get().then((data) => {
		console.log(data);
	});
	
```

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