# @types/strong-data-uri

> TypeScript definitions for strong-data-uri

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

## Install

```sh
npm install @types/strong-data-uri
pnpm add @types/strong-data-uri
yarn add @types/strong-data-uri
bun add @types/strong-data-uri
```

## 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.0.2 |
| Published | 2023-11-07 |
| First published | 2022-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts3.9) — 2022-03-02
- 1.0.1 — 2023-10-18

## README

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

export interface DataURI extends Buffer {
    mimetype: string;
    mediatype: string;
    charset: string | null;
}

/**
 * Parser for retrieving data encoded in data: URIs specified by RFC2397.
 *
 * @param uri data URI
 * @see https://www.ietf.org/rfc/rfc2397.txt
 */
export function decode(uri: string): Buffer & DataURI;

/**
 * Encoder to create data URIs specified by RFC2397.
 *
 * @param uri data URI
 * @see https://www.ietf.org/rfc/rfc2397.txt
 */
export function encode(input: Buffer | string, mediatype?: string): string;

````

### 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 [Martin Heidegger](https://github.com/martinheidegger).

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