Skip to content

Instantly share code, notes, and snippets.

@deptno
Created November 2, 2019 17:44
Embed
What would you like to do?
read gzipped base64
const zlib = require('zlib')
const R = require('ramda')
const unzip = R.compose(
JSON.parse,
zlib.inflateSync,
R.partialRight(Buffer.from, ['base64'])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment