redux-action-minifier
v0.0.3
Published
An minifier for Flux Standart action
Downloads
13
Readme
redux-action-minifier
This package provides to you possibility to minify your Flux Standard Action to send it over the network
Installation
npm install redux-action-minifier
or with yarn
yarn add redux-action-minifier
Usage
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',
}
*/
LICENSE
MIT