Private Variables in NPM Package
h
RayhanADev

So I’m almost ready to release version 1.0.0 (working my way there :D) of my REPLAPI.it package but I need to know (if it’s even possible) how to make variables that cannot be tampered with by someone using a package. For example, is I have an array with secrets someone can change the array’s contents and if I have .env keys someone can just redefine them because it wouldn’t work. Any ideas?

You are viewing a single comment. View All
RayhanADev

@realTronsi okay
1. take mat1’s ReplTalk package. That’s what I want to avoid. He left the “whitelisted” bots out in the open so well. You know. cough, cough most spam bots on Repl.it.
2. It’s not that I want to store it on the package, I just don’t know how to go about this and am open to ideas!