@types/base-64
- Version 1.0.2
- Published
- 4.71 kB
- No dependencies
- MIT license
Install
npm i @types/base-64
yarn add @types/base-64
pnpm add @types/base-64
Overview
TypeScript definitions for base-64
Index
Variables
variable version
const version: string;
Functions
function decode
decode: (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
function encode
encode: (input: string) => 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
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/base-64
.
- Markdown[](https://www.jsdocs.io/package/@types/base-64)
- HTML<a href="https://www.jsdocs.io/package/@types/base-64"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1210 ms. - Missing or incorrect documentation? Open an issue for this package.