JSONbase64
Test if string is: valid JSON or base64 encoded valid JSON (and return decoded JSON)
Installing
yarn add json-base64
Usage
const Parser = ;let payload = "eyJ0ZXN0IjoiY2FzZSJ9";let parser = ;let ret = parser;console;
Example
https://github.com/rmrfslashbin/json-base64/blob/master/examples/index.js