3 ms·
Jesus, what the hell?! Why do you dislike `require()` so much? Just imagine a person who doesn't write modules in Node.JS, but he would like his small scripts
by zazaulola 2y ago
Jesus, what the hell?!
Why do you dislike `require()` so much?
Just imagine a person who doesn't write modules in Node.JS, but he would like his small scripts to be placed in one JS-file - without any additional directories and `package.json`. His script, for example, updates data for a desktop widget, is easily bypassed by standard nodejs modules and he has hundreds of such scripts in his folder. Why does he need all this `import` overhead?