Socket
Socket
Sign inDemoInstall

lesca-atobtoa

Package Overview
Dependencies
2
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lesca-atobtoa

encode / decode data to base64


Version published
Weekly downloads
6
increased by20%
Maintainers
1
Install size
644 kB
Created
Weekly downloads
 

Readme

Source

React React React React React NPM React NPM

Why use it?

It's increase charCode in special number. It's not easy to decode.

Live Demo

Installation

npm install lesca-atobtoa --save

Usage

As a Node module:

import Atobtoa from 'lesca-atobtoa';

const Data = { name: 'james', age: '18' };
const base64 = Atobtoa.toBase64(Data);
console.log(base64); //JTI1NUIlMjU3QiUyNTIybmFtZSUyNTIyJTI1M0ElMjUyMmphbWVzJTI1MjIlMjUyQyUyNTIyYWdlJTI1MjIlMjUzQTE4JTI1N0QlMjU1RA==
console.log(Atobtoa.toJson(base64)); //[{ name: 'james', age: 18 }]

Development

Methods

methoddescriptiondefaultreturn
.toBase64(JSON:object, push:int)json to base64push = 1base64
.toJson(base64:string, push:int)base64 to jsonpush = 1json

Features

  • maintain if necessary

Keywords

FAQs

Last updated on 24 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc