Skip to content

michael-mcanulty/tsBase64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TsBase64 Encode & Decode

Simply download or copy/paste this class into your project

#Or you can use NPM

npm i ts-base-64

Import

import {ToBase64} from "ts-base-64";

Static Methods:

ToBase64(strObj: string|object|number): string
FromBase64(str:string):string
EncodeURI(str:string):string

Usage:

TsBase64.Encode("Typescript"); // Non-URI encoded, Base64 string or object.
TsBase64.Encode({test: 1234}); // object
TsBase64.Decode("VHlwZXNjcmlwdA=="); // Typescript
TsBase64.EncodeURI("Typescript\""); // "VHlwZXNjcmlwdA" (Removes the '==' chars)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published