Socket
Socket
Sign inDemoInstall

base64object

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base64object

Encode and decode a object without stringify / parsing the data


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

base64object

Encode and decode objects without stringify / parseing the data in browser / node

Zero Dependencies Build Status devDependencies Status

Install

npm

npm install base64object

yarn

yarn add base64object

Usage

base64object.encode({ hello: 'world' })
// response eyJoZWxsbyI6IndvcmxkIn0=

base64object.decode('eyJoZWxsbyI6IndvcmxkIn0=')
// response { hello: 'world' }

Support

Browser Under the hood it uses the window.atob() native feature which is supported in each major browser and IE from version 10 (check mozilla dev site)

Node Uses the native Buffer API from node (check node documentation)

Keywords

FAQs

Package last updated on 19 May 2017

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