Hi, I was wondering how to import this I believe it is not working because node is not installed, how would I do that?
Hi, go to the languages page and select "NodeJS" instead. Or if you really want to use the browser research webpack.
@dfnk why do you need to use require in the browser? Using webpack would be pretty complicated. Webpack compiles node.js code into browser code. This would probably require you to host a node.js server as well. If you just doing simple stuff just use node unless you have a really specific reason not to do so.