For that I’m using an npm package called node-disk-info.
When I type node start.js it works correctly on my device.
But when I deployed it to Heroku, it’s not working.
Does anyone know why this is happening?
Is it really possible? Can you get someone’s storage info like that?
I’m really new to this backend stuff. If anyone could help me that’d be very much appreciated.
It’s only a single JS file with only 36 lines of code.
Stop and think about this logically. Do you really think that this program is running on the user’s computer? Or is it always running on one specific computer (possibly the one you are deploying it to?) that isn’t ever their computer? If it’s the latter, how would the program be able to jump down a network connection into the user’s computer to take a look at its storage?