I have a problem which can be easily solved by importing an external JS library
into Node.js
. However, this library does not exist in NPM
.
I found out an old solution on StackOverflow
which seems to fix the problem. However, it looks wierd.
Is there a more convenient solution in 2k20 to use external JS library
methods into my Node.js
code?