Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

btrz-base64-encoder

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-base64-encoder

Encode (and decode) any value to a url friendly base64 string.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
72
decreased by-51.02%
Maintainers
2
Weekly downloads
 
Created
Source

btrz-base64-encoder

This module encodes and decodes strings, values and objects literals to url friendly base64 strings.

Runtimes supported

io.js >= 1.0.3 node >= v0.11.x

Install

npm install btrz-base64-encoder --save

Usage

var base64 = require("btrz-base64-encoder");
var obj = {
    "name": "John",
    "last": "Smith",
    "age": 24
};
var encoded = base64.encode(obj);
//
var decode = base64.decode(encoded);
/*
    {
        "name": "John",
        "last": "Smith",
        "age": 24
    }
*/

You can pass anything to the encode method. Internally will use JSON.stringify to deal with Objects, so all restrictions regarding depth for the stringify method also apply in this case.

Keywords

FAQs

Package last updated on 12 May 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc