screeb

1.0.2 • Public • Published

Screeb

Motive

Sometimes our payloads are hard to read for a human, because business is spread accross.

This is a lib that takes a SimpliField data structure and output it in a more comprehensive textual representation.

Usage

JSON to text (decode a payload)

# Example for a report 
curl 'https://app.simplifield.com/api/v3/organisations/<oid>/reports/<rid>?mode=expanded'
  # -H 'headername: headervalue'... 
  # -H 'cookie: cookies as string containing jwt' 
  --compressed --silent 
| node lib/report

You can obtain the curl command easily in Chrome's Devtools' Network

Imgur

JS to text (decode an object)

import { store } from 'screeb'
/* ... */
console.log(store(storeExample))

Compatible resources

  • lib/report
  • lib/store

Readme

Keywords

none

Package Sidebar

Install

npm i screeb

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.97 kB

Total Files

11

Last publish

Collaborators

  • xavhan