Hot answers tagged

2

Cool project! Good work so far. Clean code is important and that's one of the things I struggle with. A lot. From your code, I can see that you would benefit a lot from that too. const token = "TOKEN_HERE"; Tokens and sensitive information you should try to store in .env files. Especially if your code might be accessible on github or similar sites....


1

what kind of tampering it might still be vulnerable to I am working on testing this locally and in the process of getting it set up so I am not sure if these things are actual areas of concern but test tampering with globals like JSON, prettyPrintError , assert, Error, etc... I tried modifying JSON.parse() and was able to change its implementation... It ...


1

Initial thoughts: This code looks very ... compressed without strictly needing to. Another thing that I notice is the level of nesting that shows in here. Generally speaking it doesn't particularly make a difference how you decide to handle Promises, in the vast majority of cases it's just a matter of personal preference. One thing you do not need to worry ...


Only top voted, non community-wiki answers of a minimum length are eligible