-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base64 is not defined in Node.js environment #7
Comments
may be |
I am getting this issue too in node.js |
Same here.
|
Any workaround for this ? |
any update on this issue? |
Hey everyone, it's a little hard to find but you can find it here: http://www.webtoolkit.info/javascript_base64.html#.Wuy0KXXwbCJ |
Or you can do something like this, before you try to call a function that depends on these: global.Base64 = {
encode: function(str) {
return Buffer.from(str).toString('base64');
},
};
global.gzip = {
zip: function(str) {
return zlib.gzipSync(Buffer.from(str));
},
} Hacky but it gets the job done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JSONC.js:275
The text was updated successfully, but these errors were encountered: