Is there any way to run Node.js in a <script> tag?
问题 I would like to run Node.js in my webpage, the same way that you would with PHP or ASP.NET. The reason for this is I would like to use require()'d modules from NPM in my browser javascript, however vanilla JS doesn't seem to support this. Is there any way I can run Node.js in my tags? If not, would requiring examplenodefile.js in my browser javascript work? Edit: Is there any alternative to this, if it isn't possible? I know I can set script src but that doesn't really work as nicely as var