@advanced-rest-client/arc-electron-payload-processordeprecated

An electron module to transform ARC request data into a serializable form in the renderer process

Usage no npm install needed!

<script type="module">
  import advancedRestClientArcElectronPayloadProcessor from 'https://cdn.skypack.dev/@advanced-rest-client/arc-electron-payload-processor';
</script>

README

ARC payload processor

A class that is responsible for processing payload message and prepare it to be stored in the data store and restoring corresponding data when restoring from the store.

Example

Storing FormData

const fd = new FormData();
fs.add('field', new Blob(['test']));

PayloadProcessor.payloadToString({payload: fd})
.then((result) => {
  console.log(result);
});

Storing Blob


PayloadProcessor.payloadToString({payload: new Blob(['test'])})
.then((result) => {
  console.log(result);
});