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

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@advanced-rest-client/arc-electron-payload-processor
001.0.2a year ago3 years agoMinified + gzip package size for @advanced-rest-client/arc-electron-payload-processor in KB

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);
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.