Socket
Socket
Sign inDemoInstall

basic-64

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-64

Very powerful base 64 encoder and decoder


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
3.37 kB
Created
Weekly downloads
 

Readme

Source

How it works?

This library uses buffers to operate. This means that there are no other dependencies than itself.

How to use ?


Encoding :
const basic64 = require('basic-64'),
    string = 'keyboard cat',
    encodedString = base64.encode(string)

console.log(encodedString) // 'a2V5Ym9hcmQgY2F0'

Decoding :
const basic64 = require('basic-64'),
    string = 'a2V5Ym9hcmQgY2F0',
    decodedString = base64.encode(string)

console.log(decodedString) // 'keyboard cat'

Keywords

FAQs

Last updated on 18 Jun 2020

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