base64object

1.0.3 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i base64object

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • michaelzoidl