Created
November 2, 2019 17:44
-
-
Save deptno/3cbc210f770e90a767e53b137b66796c to your computer and use it in GitHub Desktop.
read gzipped base64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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