base64-ts
v2.0.1
Published
Base64 Encoding and Decoding in TypeScript
Downloads
57
Maintainers
Readme
Base64 TypeScript Library
- Author: Jonathan M. Wilbur <[email protected]>
- Copyright Year: 2019
- License: MIT License
- Platform: NodeJS or Modern Web Browsers
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 [email protected] (My GPG Key) (My TLS Certificate). :boar: