1.0.0 • Published 4 years ago

nativescript-base-64-manager v1.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

Base 64 Manager

nativescript-base-64-manager

https://github.com/alessiobianchini/nativescript-base-64-manager

This plugin offers the standards atob and btoa javascript functions for Android and iOS.

Installation

tns plugin add nativescript-base-64-manager

Usage

import { Base64Manager } from 'nativescript-base-64-manager';

const base64String = "QmFzZSA2NCBNYW5hZ2VyIGlzIHdvcmtpbmchIQ=="
const standardString = "Base 64 Manager is working!!"
const _base64Manager = new Base64Manager();

console.log(standardString + " -> btoa -> " + _base64Manager.btoa(standardString));
console.log(base64String + " -> atob -> " + _base64Manager.atob(base64String));