# @types/base-64

> TypeScript definitions for base-64

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

## Install

```sh
npm install @types/base-64
pnpm add @types/base-64
yarn add @types/base-64
bun add @types/base-64
```

## 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-06 |
| First published | 2016-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2023-11-06
- 1.0.0 (ts3.5) — 2021-05-04
- 0.1.3 (ts2.0) — 2019-02-13
- 1.0.1 — 2023-10-17
- 0.1.2 — 2017-03-31
- 0.1.1 — 2017-02-23
- 0.1.0 — 2016-12-23

## README

# Installation
> `npm install --save @types/base-64`

# Summary
This package contains type definitions for base-64 (https://github.com/mathiasbynens/base64).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base-64.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base-64/index.d.ts)
````ts
export as namespace base64;

export const version: string;

/**
 * This function takes a byte string (the input parameter) and encodes it according to base64.
 * The input data must be in the form of a string containing only characters
 * in the range from U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF.
 * The base64.encode() function is designed to be fully compatible
 * with btoa() as described in the HTML Standard.
 * see: https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-btoa
 */
export function encode(input: string): string;
/**
 * This function takes a base64-encoded string (the input parameter) and decodes it.
 * The return value is in the form of a string containing only characters in
 * the range from U+0000 to U+00FF, each representing a binary byte with values 0x00 to 0xFF.
 * The base64.decode() function is designed to be fully compatible
 * with atob() as described in the HTML Standard.
 * see: https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-atob
 */
export function decode(input: string): string;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: none

# Credits
These definitions were written by [Dolan Miu](https://github.com/dolanmiu).

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