base64object
Encode and decode a object without stringify / parsing the data
Last updated 3 years ago by michaelzoidl .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install base64object 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 2
Last Month 5
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |