This package provides to you possibility to minify your Flux Standard Action to send it over the network
npm install redux-action-minifier
or with yarn
yarn add redux-action-minifier
import { compressor, decompressor } from 'redux-action-minifier';
const FSA = {
type: 'UPDATE',
}
const compressedFSA = compressor(FSA);
/*
compressedFSA now equals to
{
t: 'UPDATE',
}
*/
const decompressedFSA = decompressor(compressedFSA);
/*
decompressedFSA now equals to
{
type: 'UPDATE',
}
*/
MIT