Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
base64object
Advanced tools
Encode and decode objects without stringify / parseing the data in browser / node
npm
npm install base64object
yarn
yarn add base64object
base64object.encode({ hello: 'world' })
// response eyJoZWxsbyI6IndvcmxkIn0=
base64object.decode('eyJoZWxsbyI6IndvcmxkIn0=')
// response { hello: 'world' }
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
)
FAQs
Encode and decode a object without stringify / parsing the data
The npm package base64object receives a total of 0 weekly downloads. As such, base64object popularity was classified as not popular.
We found that base64object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.