martijnversluis/ChordFiddle

View on GitHub
src/js/string_compression.js

Summary

Maintainability
A
0 mins
Test Coverage
import LZString from 'lz-string';

export function compress(input) {
  return LZString.compressToEncodedURIComponent(input);
}

export function decompress(input) {
  return LZString.decompressFromEncodedURIComponent(input);
}