base64-ts
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Base64 TypeScript Library

DEPRECATION NOTICE

I will probably never delete this repository, just so I do not break anything, but I have decided that it makes no sense to even have this. You should use the Base-64 Library recommended by Mozilla instead. Types for base64-js can be installed by running npm install @types/base64-js.

For the rest of this repository's life, it will simply be a wrapper to base64-js.

Building

You can build this library by running npm run build.

The outputs will all be in dist.

Library Usage

There are two functions: encode and decode. See the declaration below:

export declare function decode(base64: string): Uint8Array;
export declare function encode(bytes: Uint8Array): string;

decode does not tolerate whitespace. Only base-64 characters must be supplied.

Contact Me

If you would like to suggest fixes or improvements on this library, please just leave an issue on this GitHub page. If you would like to contact me for other reasons, please email me at jonathan@wilbur.space (My GPG Key) (My TLS Certificate). 🐗

Package Sidebar

Install

npm i base64-ts

Weekly Downloads

12

Version

2.0.1

License

MIT

Unpacked Size

8.39 kB

Total Files

8

Last publish

Collaborators

  • jonathanwilbur