# @types/mapbox__s3urls

> TypeScript definitions for @mapbox/s3urls

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

## Install

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

## 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 | 1.5.7 |
| Published | 2023-11-07 |
| First published | 2019-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.5.7 (latest) — 2023-11-07
- 1.5.3 (ts4.3) — 2023-09-11
- 1.5.2 (ts3.2) — 2020-09-26
- 1.5.1 (ts3.1) — 2020-09-02
- 1.5.0 (ts2.0) — 2019-02-01
- 1.5.6 — 2023-10-18
- 1.5.5 — 2023-09-27
- 1.5.4 — 2023-09-27

## README

# Installation
> `npm install --save @types/mapbox__s3urls`

# Summary
This package contains type definitions for @mapbox/s3urls (https://github.com/mapbox/s3urls).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__s3urls.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__s3urls/index.d.ts)
````ts
/* eslint-disable @definitelytyped/no-declare-current-package */
// eslint-disable-next-line @definitelytyped/no-single-declare-module
declare module "@mapbox/s3urls" {
    function fromUrl(
        url: string,
    ): { Bucket: string | undefined; Key: string | undefined };

    function toUrl(
        bucket: string,
        key: string,
    ): {
        s3: string;
        "bucket-in-path": string;
        "bucket-in-host": string;
    };

    function convert(
        url: string,
        to: "s3" | "bucket-in-path" | "bucket-in-host",
    ): string;

    function signed(
        url: string,
        expires: number,
        cb: (err: Error | undefined, url: string) => void,
    ): void;

    function valid(url: string): boolean;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Sebastian Vera](https://github.com/sebastianvera).

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