Skip to content

Commit

Permalink
Add compressBase64/decompressBase64
Browse files Browse the repository at this point in the history
  • Loading branch information
polygonplanet committed Nov 22, 2014
1 parent c6d0683 commit c9d8e93
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,30 @@ var lzjs = require('lzjs');

## Usage

* {_string_} lzjs.**compress** ( {_string_|_Buffer_} data )
### compress/decompress

* {_string_} lzjs.**compress** ( data )
Compress data.
@param {_string_|_Buffer_} _data_ Input data
@return {_string_} Compressed data

* {_string_} lzjs.**decompress** ( {_string_} data )
* {_string_} lzjs.**decompress** ( data )
Decompress data.
@param {_string_} _data_ Input data
@return {_string_} Decompressed data

### compressBase64/decompressBase64

* {_string_} lzjs.**compressBase64** ( data )
Compress data to base64 string.
@param {_string_|_Buffer_} _data_ Input data
@return {_string_} Compressed data

* {_string_} lzjs.**decompressBase64** ( data )
Decompress data from base64 string.
@param {_string_} _data_ Input data
@return {_string_} Decompressed data


```javascript
var data = 'hello hello hello';
Expand Down

0 comments on commit c9d8e93

Please sign in to comment.