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
realTronsi

@RayhanADev then have the user define the whitelist and use it...