json-base64

1.2.1 • Public • Published

Build Status Codacy Badge Codacy Badge bitHound Code NPM

JSONbase64

Test if string is: valid JSON or base64 encoded valid JSON (and return decoded JSON)

Installing

yarn add json-base64

Usage

const Parser = require("json-base64");
let payload = "eyJ0ZXN0IjoiY2FzZSJ9"];
let parser = new Parser();
let ret = parser.parse(payload);
console.log(ret);

Example

https://github.com/rmrfslashbin/json-base64/blob/master/examples/index.js

Dependents (0)

Package Sidebar

Install

npm i json-base64

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

55.4 kB

Total Files

8

Last publish

Collaborators

  • rmrfslashbin