Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/danieljdufour/rle-serializers

Serialize and Deserialize Run Length Encoding
https://github.com/danieljdufour/rle-serializers

cloud-optimized compression csv data deserializer run-length run-length-decoding run-length-encoding serializer

Last synced: 23 days ago
JSON representation

Serialize and Deserialize Run Length Encoding

Awesome Lists containing this project

README

        

# rle-serializers
Serialize and Deserialize Run Length Encoding Data

# usage
## basic csv serialization
```javascript
import serialize_basic_csv from 'rle-serializers/serialize_basic_csv';

const csv = serialize_basic_csv([5, 3, 1, 8, 2, 0]);
//5,3,1,8,2,0
```

## basic csv deserialization
```javascript
const data = deserialize_basic_csv("5,3,1,8,2,0");
// [5, 3, 1, 8, 2, 0]
```

## enhanced csv serialization
```javascript
import serialize_advanced_csv from 'rle-serializers/serialize_advanced_csv';

const csv = serialize_advanced_csv([5, 3, 1, 8, 2, 0]);
//3x5,8,0x2
```

## enhanced csv deserialization
```javascript
import deserialize_advanced_csv from 'rle-serializers/serialize_advanced_csv';

const data = deserialize_advanced_csv("3x5,8,0x2");
// [5, 3, 1, 8, 2, 0]
```

# support
Post an issue at https://github.com/danieljdufour/rle-serializers/issues