Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shastel/redux-action-minifier

This package provides to you possibility to minify your Flux Standard Action to send it over the network
https://github.com/shastel/redux-action-minifier

action flux fsa redux

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# redux-action-minifier
> This package provides to you possibility to minify your [Flux Standard Action](https://github.com/acdlite/flux-standard-action#flux-standard-action) to send it over the network
---

* [Installation](#installation)
* [Usage](#usage)

## Installation

```sh
npm install redux-action-minifier
```

or with yarn

```sh
yarn add redux-action-minifier
```

## Usage

```javascript

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