Skip to content

This package provides to you possibility to minify your Flux Standard Action to send it over the network

License

Notifications You must be signed in to change notification settings

Shastel/redux-action-minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This package provides to you possibility to minify your Flux Standard Action to send it over the network

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published