# @types/simple-get

> TypeScript definitions for simple-get

Latest version **4.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/simple-get
pnpm add @types/simple-get
yarn add @types/simple-get
bun add @types/simple-get
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.3 |
| Published | 2023-11-07 |
| First published | 2023-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51375 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/simple-get
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-get
- npm.io page: https://npm.io/package/@types/simple-get

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 4.0.3 (latest) — 2023-11-07
- 4.0.0 (ts4.3) — 2023-08-01
- 4.0.2 — 2023-10-18
- 4.0.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/simple-get`

# Summary
This package contains type definitions for simple-get (https://github.com/feross/simple-get).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-get.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-get/index.d.ts)
````ts
/// <reference types="node" />

import { ClientRequest, IncomingMessage, RequestOptions } from "http";
import { Readable } from "stream";

interface SimpleGetOptions extends RequestOptions {
    url: string;
    /**
     * Default value: ```10```
     */
    maxRedirects?: number;
    body?: string | {
        [key: string]: unknown;
    } | Readable;
    form?: {
        [key: string]: unknown;
    };
    followRedirects?: boolean;
    /**
     * Serialize/deserialize request and response with JSON
     */
    json?: boolean;
}

export = simpleGet;

type Callback = (err: Error | null, res?: IncomingMessage) => void | never;

declare function simpleGet(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

declare namespace simpleGet {
    export function concat(
        options: string | SimpleGetOptions,
        cb: (err: Error | null, res?: IncomingMessage, data?: Buffer | object) => void | never,
    ): ClientRequest | never;

    export function get(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    export function head(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    export function patch(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    export function post(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    export function put(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    function _delete(options: string | SimpleGetOptions, cb: Callback): ClientRequest | never;

    export { _delete as delete };
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Konrad Perlicki](https://github.com/KonradPerlicki).

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