1.0.2 • Published 4 years ago

screeb v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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
1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago