2.0.2 • Published 6 months ago
@types/base45 v2.0.2
Installation
npm install --save @types/base45
Summary
This package contains type definitions for base45 (https://github.com/irony/base45).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base45.
index.d.ts
// Type definitions for base45 2.0
// Project: https://github.com/irony/base45
// Definitions by: Kyle Hensel <https://github.com/k-yle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
/**
* This function takes a base45-encoded string, decodes it, and returns a buffer.
*/
export function decode(base45: string): Buffer;
/**
* This function takes a byte string and encodes it according to base45.
* 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` or a binary buffer in the
* same range.
*/
export function encode(buffer: Buffer | Uint8Array | string): string;
Additional Details
- Last updated: Mon, 29 Nov 2021 23:31:04 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Kyle Hensel.