Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@feizheng/next-json2base64

afeiship3MIT1.1.3

Json and base64 encode/decode.

readme

next-json2base64

Json and base64 encode/decode.

installation

npm install -S @feizheng/next-json2base64

apis

api params description
decode (string) Transform base64 string to js object
encode (object) Transform object to base64 string

usage

import NxJson2base64 from '@feizheng/next-json2base64';

// code goes here:
NxJson2base64.decode('eyJuYW1lIjoiYWZlaSIsImFnZSI6MTA4fQ==');
// { name: 'afei', age: 108 }