# @types/s3rver

> TypeScript definitions for s3rver

Latest version **3.7.4** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/s3rver
pnpm add @types/s3rver
yarn add @types/s3rver
bun add @types/s3rver
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.7.4 |
| Published | 2023-11-21 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 3.7.4 (latest) — 2023-11-21
- 3.7.0 (ts3.7) — 2021-09-07
- 0.0.33 (ts3.6) — 2021-07-06
- 0.0.32 (ts2.8) — 2019-12-26
- 0.0.31 (ts2.1) — 2019-04-24
- 0.0.30 (ts2.0) — 2018-06-01
- 3.7.3 — 2023-11-07
- 3.7.2 — 2023-10-18
- 3.7.1 — 2023-09-25
- 0.0.29 — 2018-06-01
- 0.0.28 — 2016-09-19
- 0.0.27 — 2016-07-14
- 0.0.26-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- … 6 more at https://npm.io/package/@types/s3rver/versions

## README

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

import { IncomingMessage, ServerResponse } from "http";
import { Http2ServerRequest, Http2ServerResponse } from "http2";
import { AddressInfo } from "net";

declare class S3rver {
    constructor(options: S3rverOptions);
    run(): Promise<AddressInfo>;
    run(callback: (error: Error | null, address: AddressInfo) => void): this;
    close(): Promise<void>;
    close(callback: (error?: Error) => void): this;
    callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
    getMiddleware(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
    configureBuckets(): Promise<void>;
    reset(): void;
}

interface S3rverOptions {
    address?: string | undefined;
    port?: number | undefined;
    key?: string | Buffer | undefined;
    cert?: string | Buffer | undefined;
    silent?: boolean | undefined;
    serviceEndpoint?: string | undefined;
    directory?: string | undefined;
    resetOnClose?: boolean | undefined;
    allowMismatchedSignatures?: boolean | undefined;
    vhostBuckets?: boolean | undefined;
    configureBuckets?: readonly S3rverBucketConfig[] | undefined;
}

interface S3rverBucketConfig {
    name: string;
    configs: ReadonlyArray<string | Buffer>;
}

export = S3rver;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [David Broder-Rodgers](https://github.com/DavidBR-SW), [F. Eugene Aumson](https://github.com/feuGeneA), and [Trygve Aaberge](https://github.com/trygveaa).

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