3.0.0 • Published 3 years ago

@pietrop/words-tsv-serializer v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Brief of the project

Helper functions to serialize and de-serialize array of words into a tsv string.

Mainly aimed at redusing payload size for saving data in firebase. Firebase a size limit of 1mb per document.

Used as part of pietrop/digital-paper-edit-firebase

Setup

git clone git@github.com:pietrop/words-tsv-serializer.git
cd words-tsv-serializer
npm install

Usage

On npm as @pietrop/words-tsv-serializer

npm install @pietrop/words-tsv-serializer
const { deserializeTsvOfWords } = require('@pietrop/words-tsv-serializer');
// an example tsv
const tsv = `1.4\t3.9\tan\n3.9\t4\tyou\n4\t4.1\thear\n4.1\t4.2\tit?`;
const words = deserializeTsvOfWords({ data: tsv });
console.log(words);

System Architecture

Thought process discussed in this ADR - Saving word level transcripts in Firebase from pietrop/digital-paper-edit-firebase.

Development env

Node version is set in node version manager .nvmrc

nvm use

Build

NA

Tests

npm test

Deployment

npm run publish:public