Skip to content

Instantly share code, notes, and snippets.

@deptno
Created November 2, 2019 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deptno/3cbc210f770e90a767e53b137b66796c to your computer and use it in GitHub Desktop.
Save deptno/3cbc210f770e90a767e53b137b66796c to your computer and use it in GitHub Desktop.
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